Created
January 13, 2020 07:56
-
-
Save billhsia/4659e73786e2a9dfcd6eb53c0167b692 to your computer and use it in GitHub Desktop.
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment