前提是需要下载nltk数据集!import nltknltk.download()代码如下:from nltk.corpus import wordnet as wnl=[]for synset in wn.synsets('function'): print(synset.lemma_names()) for i in synset.lemmas(): l.append(i.
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号