在 C# 中添加 Wordnet.net 字典

发布于 2024-07-13 02:13:05 字数 65 浏览 4 评论 0 原文

如何在我的应用程序中添加 Wordnet 词典或 msword 词典? 我正在使用 .NET C# 开发应用程序。

How can I add Wordnet dictionary or msword dictionary in my application? I am developing the Application in .NET C#.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

一梦等七年七年为一梦 2024-07-20 02:13:05

我想你想添加拼写检查?

如果是这样,有一些

使用 MS Word 的

可以您可以提供有关您的要求的更多信息吗?

I assume u want to add spell checking?

if so there are a few options

using the MS Word

Can you give some more info on your requirements?

冷心人i 2024-07-20 02:13:05

据我所知,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/

鹿港巷口少年归 2024-07-20 02:13:05

您可以考虑在应用程序中使用 WordNet 数据文件,它们只是文本文件,似乎遵循非常基本的结构。 如果您下载 Windows 应用程序,您可以看到它使用的数据文件。 或者,您可以将它们导入数据库(通过 SSIS 或其他方式),以便在编码时让您的工作更轻松:

  • SQLite -> 自包含单个文件
    您可以通过数据库进行查询
    您的 .NET 应用程序
  • Sql Express -> 您可以使用您的 SQL Server 的免费版本进行部署
    应用程序。

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:

  • SQLite -> Self contained single file
    database which you can query through
    your .NET app
  • Sql Express -> Free version of SQL Server you could deploy with your
    app.
很酷又爱笑 2024-07-20 02:13:05

如果您想在 :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

智商已欠费 2024-07-20 02:13:05

看到这个问题的朋友可以参考以下内容
链接。 它指向读取 WordNet 数据库的各种 C# 实现。

For those who view this question, please refer to the following
link. It points various C# implementations that read the WordNet database.

最终幸福 2024-07-20 02:13:05

此处列出的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文