NHunpell中找到同义词的问题 [英] problem finding synonym in NHunpell

查看:94
本文介绍了NHunpell中找到同义词的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码

MyThes thes =新的MyThes("th_en_us_new.idx","th_en_us_new.dat");

Hunspell hunspell = new Hunspell("en_us.aff","en_us.dic");

ThesResult tr = thes.Lookup("country",hunspell);

Response.Write(tr.IsGenerated.ToString());

现在的问题是tr.IsGenerated始终为假,无论我输入什么字符串....
谁能帮忙...

here is my code

MyThes thes = new MyThes("th_en_us_new.idx", "th_en_us_new.dat");

Hunspell hunspell = new Hunspell("en_us.aff", "en_us.dic");

ThesResult tr = thes.Lookup("country", hunspell);

Response.Write(tr.IsGenerated.ToString());

now the problem is tr.IsGenerated is always false no matter what string i give as an input....
can any one help...

推荐答案

IsGenerated仅表明含义是否由词干产生.

http://www.maierhofer.de/en/documentation/nhunspell/index.html [ ^ ]
IsGenerated just indicates whether the meanings are generated by word stemming.

http://www.maierhofer.de/en/documentation/nhunspell/index.html[^]


这篇关于NHunpell中找到同义词的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆