import ntlk
lemmatizer = ntlk.WordNetLemmatizer()
print(lemmatizer.lemmatize("goes"))
print(lemmatizer.lemmatize("transforming"))
The first example will with "goes" do work. The output is: "go". The second does not work. I get the output "transforming" but should be "transform".