繁体   English   中英

是否可以从NHunspell对象中删除单词

[英]Is it possible to remove a word from a NHunspell object

您可以这样向NHunspell(Hunspell的.NET端口)添加单词

NHunspell.Hunspell hunspell = new NHunspell.Hunspell(".affPath", ".dicPath");
String[] words = GetUserWords();
foreach (String word in words)
  hunspell.Add(word);

如果我需要从对象中删除一个单词怎么办? 有没有一种方法可以从NHunspell对象中删除单词,而无需创建新单词并再次添加自定义单词?

当前(1.1.0.0)remove尚未在NHunspell中实现,但我考虑在下一版本中实现

添加:由于(1.1.1.0)删除已实现。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM