在asp.net中使用wordnet的问题

时间:2011-10-16 13:48:59

标签: c# asp.net wordnet

我一直在尝试使用wordnet来生成单词的同义词。我发现要使用wordnet功能我必须

  1. 下载WordNet prolog数据库,gunzip,untar等。

  2. 根据需要调用Syn2Index以构建同义词索引。它需要2个参数,从WordNet下载到wn_s.pl的路径,以及索引名称。

  3. 更新您的用户界面,以便根据需要调用SynExpand.expand(...)以使用同义词扩展用户查询。

  4. 我已经下载了WordNetProlog数据库。我明白这里的第二点和第三点...... 谁能帮忙...... 提前谢谢你..

2 个答案:

答案 0 :(得分:0)

您是否尝试过分析作为wordnet实现的Framenet,如 this page 中的链接。

可能你可以得到一个主意。我想你在第2步中提到的过程是指Perl中的源代码。

答案 1 :(得分:0)

另一种选择是下载查询本地数据库的独立程序,例如:我使用cygwin wn。然后你可以按如下方式使用它:

$ wn wordnet -over

Overview of noun wordnet

The noun wordnet has 2 senses (no senses from tagged texts)

1. wordnet -- (any of the machine-readable lexical databases modeled after the Princeton WordNet)
2. WordNet, Princeton WordNet -- (a machine-readable lexical database organized by meanings; developed at Princeton University)