在 C# 中添加 Wordnet.net 字典
如何在我的应用程序中添加 Wordnet 词典或 msword 词典? 我正在使用 .NET C# 开发应用程序。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何在我的应用程序中添加 Wordnet 词典或 msword 词典? 我正在使用 .NET C# 开发应用程序。
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
我想你想添加拼写检查?
如果是这样,有一些
使用 MS Word 的
使用单词拼写检查器
http://www.codeproject.com/KB/cs/spellcheckdemo.aspx
http://www.codeproject.com/KB/office/SpellCheckUsingWord.aspx
使用内置的 WPF 拼写检查器(如果您使用的是 WPF)
http://www.dev102.com /2008/03/25/customize-spellcheck-on-wpf-text-controls/
使用免费源
http://sourceforge.net/projects/netspell/
购买一个
http://www.wintertree-software.com/spell-check/ csharp/index.html
http://www.keyoti.com/products/rapidspell/dotnet/< /p>
可以您可以提供有关您的要求的更多信息吗?
I assume u want to add spell checking?
if so there are a few options
using the MS Word
Use the word spell checker
http://www.codeproject.com/KB/cs/spellcheckdemo.aspx
http://www.codeproject.com/KB/office/SpellCheckUsingWord.aspx
using the built in WPF spell checker (if u are using wpf)
http://www.dev102.com/2008/03/25/customize-spellcheck-on-wpf-text-controls/
use a free source one
http://sourceforge.net/projects/netspell/
purchase one
http://www.wintertree-software.com/spell-check/csharp/index.html
http://www.keyoti.com/products/rapidspell/dotnet/
Can you give some more info on your requirements?
据我所知,MS Word 没有真正的词典。 它有一个拼写检查器和一个同义词库。
你的意思是你想要一个同义词库吗?
如果您想要一本真正的字典,也许您可以考虑对像这样的字典网络服务进行标注
http://services.aonaware.com/DictService/
As far as I was aware MS Word does not have a true dictionary. It has a spellchecker and a thesaurus.
Do you mean you want a thesaurus?
If you want a true dictionary perhaps you can look at doing a callout to a dictionary webservice like this one
http://services.aonaware.com/DictService/
您可以考虑在应用程序中使用 WordNet 数据文件,它们只是文本文件,似乎遵循非常基本的结构。 如果您下载 Windows 应用程序,您可以看到它使用的数据文件。 或者,您可以将它们导入数据库(通过 SSIS 或其他方式),以便在编码时让您的工作更轻松:
您可以通过数据库进行查询
您的 .NET 应用程序
应用程序。
You could look at using the WordNet data files in your application, they are just text files that seem to follow a pretty basic structure. If you download the windows app you can see the data files it uses. Alternativly you could import them into a database (through SSIS or other means) to make life easier for yourself when coding:
database which you can query through
your .NET app
app.
如果您想在 :NET 中进行拼写检查、连字符或需要同义词库,您可以尝试一下 NHunspell。 它是 OpenOffice、Google Chrome 和 Firefox 拼写检查器 Hunspell 的 .NET 版本,并具有所有这些功能。 它可以使用OO字典。
NHunspell 项目主页
If you want to do spell checking, hyphenation in :NET or need a thesaurus, you can give NHunspell a try. It is a .NET version of the OpenOffice, Google Chrome and Firefox spell checker Hunspell and has all these features. It can use the OO dictionaries.
NHunspell Project Homepage
看到这个问题的朋友可以参考以下内容
链接。 它指向读取 WordNet 数据库的各种 C# 实现。
For those who view this question, please refer to the following
link. It points various C# implementations that read the WordNet database.
此处列出的 API:http://wordnet.princeton.edu/wordnet/lated -projects/#.NET,
马特·格伯 (http://ptl.sys.virginia.edu/ ptl/members/matthew-gerber/software#WordNet_API )是最好的。
它不是一个很好的 API,但它工作得很好,并且对于我所需要的东西来说这是一个良好的开始。
我还没有尝试过 Proxem 的 Antelope,因为它看起来更像是一个重量级应用程序然后是一个简单的API。 但它可能更强大。
还有一个 SharpWordNet 库作为 SharpNLP 项目的一部分,我还没有尝试过。
Of the API's listed here: http://wordnet.princeton.edu/wordnet/related-projects/#.NET,
Matt Gerber's ( http://ptl.sys.virginia.edu/ptl/members/matthew-gerber/software#WordNet_API ) is the best.
It's not a great API, but it works okay and it was a good start for what I needed.
I've also not tried Proxem's Antelope yet as it seemed more like a heavyweight app then a simple API. It may be much more robust though.
There's also a SharpWordNet library as part of the SharpNLP project that I haven't tried yet.