开发者

Parse WordNet database into SQL?

开发者 https://www.devze.com 2023-03-02 21:51 出处:网络
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 ther

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号