Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armandgiraud/quest2keys
simple transform french sentence to keywords string
https://github.com/armandgiraud/quest2keys
information-extraction nlp-french nlp-keywords-extraction postagging
Last synced: 5 days ago
JSON representation
simple transform french sentence to keywords string
- Host: GitHub
- URL: https://github.com/armandgiraud/quest2keys
- Owner: ArmandGiraud
- License: mit
- Created: 2019-02-13T11:23:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T16:11:55.000Z (over 5 years ago)
- Last Synced: 2024-01-17T20:34:18.379Z (10 months ago)
- Topics: information-extraction, nlp-french, nlp-keywords-extraction, postagging
- Language: Python
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quest2keys
**a simple question 2 keywords in french based on pos-tags**## Install
```pip install .```
Download the spacy model
```python -m spacy download fr_core_news_md```
for a light version
```python -m spacy download fr_core_news_sm```
## Usage:
```python
from quest2keys.extract_keywords import SpacyExtractorSPACY_FILTER_SOFT = ["NOUN","PROPN", "VERB", "X","ADJ", "ADV"]
se = SpacyExtractor(SPACY_FILTER_SOFT, "fr_core_news_md")
se.filter_sent_spacy("Quels sont les moyens d'action du comité d'entreprise?")
>>> "moyens action comité entreprise"
```