synsets~20171214-205736.py 501 B

123456789101112
  1. #!/usr/bin/env python
  2. # coding: utf8
  3. # More options with Wordnet: http://www.nltk.org/howto/wordnet.html
  4. from nltk.corpus import wordnet as wn
  5. print([synset.lemma_names('fra') for synset in wn.synsets('chien', lang='fra')])
  6. '''
  7. [['canis_familiaris', 'chien'], ['aboyeur', 'chien', 'chienchien', 'clébard', 'toutou'], ['chien', 'chien_de_chasse'], ['chien'], ['chien', 'clic', 'cliquer', 'cliquet'], ['chien', 'franc', 'hot-dog'], ['achille', 'chien', 'quignon', 'talon'], ['chien'], ['chien']
  8. '''