Skip to content

Instantly share code, notes, and snippets.

from nltk.corpus import wordnet as wn
tartget_synset = wn.synset_from_pos_and_offset('n', int(2084071))
print(tartget_synset) # synset
print(tartget_synset.lemma_names()) # 同義詞
print(tartget_synset.definition()) # definition