I am trying to do lemmatization on words with NLTK
.
What I can find now is that I can use the stem
package to get some results like transform "cars" to "car" and "women" to "woman", however I cannot do lemmatization on some words with affixes like "acknowledgement".
When using WordNetLemmatizer()
on "acknowledgement", it returns "acknowledgement" and using .PorterStemmer()
, it returns "acknowledg" rather than "acknowledge".
Can anyone tell me how to eliminate the affixes of words?
Say, when input is "acknowledgement", the output to be "acknowledge"