Question : spacy frenc hlemmatizer
Answered by : maxime-materno
pip3 install spacy
python3 -m spacy download fr_core_news_md
import spacy
nlp = spacy.load('fr_core_news_md')
doc = nlp(u"voudrais non animaux yeux dors couvre.")
for token in doc: print(token, token.lemma_)
Source : https://stackoverflow.com/questions/13131139/lemmatize-french-text | Last Update : Thu, 17 Sep 20
Question : spacy frenc hlemmatizer
Answered by : maxime-materno
>>> from nltk.stem.snowball import FrenchStemmer
>>> stemmer = FrenchStemmer()
>>> stemmer.stem('voudrais')
u'voudr'
>>> stemmer.stem('animaux')
u'animal'
>>> stemmer.stem('yeux')
u'yeux'
>>> stemmer.stem('dors')
u'dor'
>>> stemmer.stem('couvre')
u'couvr'
Source : https://stackoverflow.com/questions/13131139/lemmatize-french-text | Last Update : Thu, 17 Sep 20