简体   繁体   English

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

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

You can add words to NHunspell (.NET port of Hunspell) as such 您可以这样向NHunspell(Hunspell的.NET端口)添加单词

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

What if I need to remove a word from the object? 如果我需要从对象中删除一个单词怎么办? Is there a way to remove a word from the NHunspell object without having to create a new one and adding custom words again? 有没有一种方法可以从NHunspell对象中删除单词,而无需创建新单词并再次添加自定义单词?

Currently (1.1.0.0) remove is not implemented in NHunspell but i consider to implement it in the next version 当前(1.1.0.0)remove尚未在NHunspell中实现,但我考虑在下一版本中实现

Addition: Since ( 1.1.1.0) remove is implemented. 添加:由于(1.1.1.0)删除已实现。

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

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