Spacy checking lemma output

--

If you wanna check the lemma output of a token, you can use this. Before doing that, you should install spacy and download the “en_core_web_sm” model

>>> import spacy>>> nlp = spacy.load('en_core_web_sm')>>> doc = nlp("loving")>>> for token in doc:...     print(token, token.lemma, token.lemma_)...loving 3702023516439754181 love

--

--

No responses yet