Reputation: 57194
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 I get started I was wondering if there are any existing parsers or if someone has already created a SQL version of the database?
Upvotes: 2
Views: 2022
Reputation: 3068
check out http://wnsqlbuilder.sourceforge.net/ (from Related Projects on the WordNet site)
Upvotes: 3
Reputation: 1059
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')]
Upvotes: 6