为什么lemmatizer不能在某些方面起作用?

时间:2019-07-01 10:13:01

标签: python nltk

我通过spyder更新了wordnet程序包,以了解是否发生了残局化。我看不到它多次尝试。任何帮助

In [28]: import nltk

In [29]: nltk.download('wordnet')
[nltk_data] Downloading package wordnet to
[nltk_data]     C:\Users\1025990\AppData\Roaming\nltk_data...
[nltk_data]   Package wordnet is already up-to-date!
Out[29]: True

In [30]: from nltk.stem import WordNetLemmatizer

In [31]: lemmatizer=WordNetLemmatizer()

In [32]: print(lemmatizer.lemmatize("caring"))
caring

In [33]: print(lemmatizer.lemmatize("forecasting"))
forecasting

In [34]: print(lemmatizer.lemmatize("running"))
running

0 个答案:

没有答案