NLTK WordNetLemmatizer: Not Lemmatizing as Expected

前端 未结 2 1323
南旧
南旧 2021-01-25 01:21

I\'m trying to lemmatize all of the words in a sentence with NLTK\'s WordNetLemmatizer. I have a bunch of sentences but am just using the first sentence to ensure I\'m doing th

2条回答
  •  一个人的身影
    2021-01-25 02:15

    1. This is really something that the nltk community would be able to answer.
    2. This is happening because of the , at the end of vandalisms,.To remove this trailing ,, you could use .strip(',') or use mutliple delimiters as described here.

提交回复
热议问题