Parse WordNet database into SQL?
I would like to have the WordNet database in SQL format so I'm thinking about trying to write a parser for the WordNet files. However, before开发者_StackOverflow I get started I was wondering if there are any existing parsers or if someone has already created a SQL version of the database?
You can use the following parsers.
Perl: Wordnet::QueryData
Python [NLTK] : http://nltk.googlecode.com/svn/trunk/doc/book/ch02.html#ex-car1
>>> from nltk.corpus import wordnet as wn
>>> wn.synsets('motorcar')
[Synset('car.n.01')]
check out http://wnsqlbuilder.sourceforge.net/ (from Related Projects on the WordNet site)
精彩评论