开发者

using wordnet to find terms with no noun synsets or at least one noun synset

I am using WordNet 3.0. The WordNet documentation shows how to find s开发者_JS百科ynsets of a given word such as:

 wn car -synsn

But, is there a way to find terms with

a) no noun synsets

b) with at least one noun synset and so on.

Thanks, Sony


The short answer is:
"NO! There is no way to search based on existence or count of words in synset"

Neither the Command Line interface nor the Library API provide the ability to apply this kind of predicates to a search.

This said, it is possible to import WordNet files to a more relational type of storage, and perform this type of queries in the resulting database.
The more direct way to import WordNet data is by tapping directly into the WordNet files themselves (see in particular these two files and parsing out the desired data.
An alternative is to build some kind of scanner of the data based on the Library API, hence leveraging all the WordNet format parsing capability of the library, and to output the desired Fields to a text file more suitable for database import.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜