dependencies
[nltk_ontology_framework.git] / test / standalone / for_fun.py
bloba16453581c6a24b7058e2584bce72dfbeed116b4
1 # This Python file uses the following encoding: utf-8
2 '''
3 Created on May 8, 2011
5 @author: mjacob
6 '''
8 from mjacob.ontologybuilder import SimpleConcepts
9 from nltk.corpus import wordnet
10 wn = wordnet
12 a = SimpleConcepts()
13 def gogo(thing):
14 print " ".join([wn.synset(n).definition
15 for n in a.get_concept([[s.name for s in wn.synsets(x, pos='an')]
16 for x in thing.split(' ')], debug=True)])
19 gogo('hobo sign')