I want to find word stems with Wordnet
. Does wordnet
have a function for stemming?
I use this import for my stemming, but it doesn't work as expected.
from nltk.stem.wordnet import WordNetLemmatizer
WordNetLemmatizer().lemmatize('Having','v')
Seems like you have to input a lowercase string to the lemmatize
method:
>>> WordNetLemmatizer().lemmatize('having','v')
'have'
>>> WordNetLemmatizer().lemmatize('has','v')
'have'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With