spacy frenc hlemmatizer

Solutions on MaxInterview for spacy frenc hlemmatizer by the best coders in the world

showing results for - "spacy frenc hlemmatizer"
Johanna
27 Apr 2017
1>>> from nltk.stem.snowball import FrenchStemmer
2>>> stemmer = FrenchStemmer()
3>>> stemmer.stem('voudrais')
4u'voudr'
5>>> stemmer.stem('animaux')
6u'animal'
7>>> stemmer.stem('yeux')
8u'yeux'
9>>> stemmer.stem('dors')
10u'dor'
11>>> stemmer.stem('couvre')
12u'couvr'
Marie
10 Oct 2019
1pip3 install spacy
2python3 -m spacy download fr_core_news_md
3
4import spacy
5nlp = spacy.load('fr_core_news_md')
6
7doc = nlp(u"voudrais non animaux yeux dors couvre.")
8for token in doc:
9    print(token, token.lemma_)