Python - WordNet NLTK KeyError
问题 I really don`t get it. I´m using WordNet and I get in trouble. I call the following method with strings like that: F2F - Process started, Create planning data, Create a goods receipt, Goods receipt created def lemmatise(word, pos=NOUN): return WordNetLemmatizer().lemmatize(word, pos) This one calls the next method: def lemmatize(self, word, pos=NOUN): lemmas = wordnet._morphy(word, pos) return min(lemmas, key=len) if lemmas else word And the method morphy() is where the error says that the