def wordnet_lemmatize(word, pos='n'):
global _nltk_wordnet_lemmatizer
try:
_nltk_wordnet_lemmatizer
except NameError:
_nltk_wordnet_lemmatizer = WordNetLemmatizer()
return _nltk_wordnet_lemmatizer.lemmatize(word, penn2morphy(pos))
评论列表
文章目录