Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 SpacyExtractor

SPACY_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"
```