This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |