I want to get the original words back.
I know using nltk
module i can lemmatize the words
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
lemmatizer.lemmatize(str)
I may require another arguments like:
lemmatizer.lemmatize(str. "a")
or
lemmatizer.lemmatize(str, "v")
But the problem is I don't have the whole sentence to tokenize.
I want to input a word, it returns the original words without sentence tokenizing.
I want:
was -> be
strongest -> strong
broke -> break
kisses -> kiss