在c#中添加Wordnet.net字典

时间:2023-01-17 14:07:31

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

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

6 个解决方案

#1


I assume u want to add spell checking?

我想你想添加拼写检查?

if so there are a few options

如果是这样,有一些选择

using the MS Word

使用MS Word

Can you give some more info on your requirements?

你能提供一些关于你的要求的更多信息吗?

#2


As far as I was aware MS Word does not have a true dictionary. It has a spellchecker and a thesaurus.

据我所知,MS Word没有真正的字典。它有一个拼写检查器和一个词库。

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/

如果你想要一个真正的字典,也许你可以看一下这样的字典webservice的一个标注http://services.aonaware.com/DictService/

#3


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:

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

  • SQLite -> Self contained single file database which you can query through your .NET app
  • SQLite - >自包含的单个文件数据库,您可以通过.NET应用程序进行查询

  • Sql Express -> Free version of SQL Server you could deploy with your app.
  • Sql Express - >您可以使用您的应用程序部署的免费SQL Server版本。

#4


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.

如果你想在.NET中进行拼写检查,连字符或需要词库,你可以试试NHunspell。它是OpenOffice,Google Chrome和Firefox拼写检查器Hunspell的.NET版本,具有所有这些功能。它可以使用OO词典。

NHunspell Project Homepage

NHunspell项目主页

#5


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

对于查看此问题的用户,请参阅以下链接。它指出了读取WordNet数据库的各种C#实现。

#6


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.

这里列出的API:http://wordnet.princeton.edu/wordnet/related-projects/#.NET,Matt Gerber's(http://ptl.sys.virginia.edu/ptl/members/matthew-gerber/software #WordNet_API)是最好的。

It's not a great API, but it works okay and it was a good start for what I needed.

它不是一个很好的API,但它可以正常工作,这是我需要的一个良好的开端。

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.

我还没有尝试过Proxem的Antelope,因为它看起来更像是一个重量级应用程序,然后是一个简单的API。但它可能更强大。

There's also a SharpWordNet library as part of the SharpNLP project that I haven't tried yet.

还有一个SharpWordNet库作为SharpNLP项目的一部分,我还没有尝试过。

#1


I assume u want to add spell checking?

我想你想添加拼写检查?

if so there are a few options

如果是这样,有一些选择

using the MS Word

使用MS Word

Can you give some more info on your requirements?

你能提供一些关于你的要求的更多信息吗?

#2


As far as I was aware MS Word does not have a true dictionary. It has a spellchecker and a thesaurus.

据我所知,MS Word没有真正的字典。它有一个拼写检查器和一个词库。

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/

如果你想要一个真正的字典,也许你可以看一下这样的字典webservice的一个标注http://services.aonaware.com/DictService/

#3


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:

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

  • SQLite -> Self contained single file database which you can query through your .NET app
  • SQLite - >自包含的单个文件数据库,您可以通过.NET应用程序进行查询

  • Sql Express -> Free version of SQL Server you could deploy with your app.
  • Sql Express - >您可以使用您的应用程序部署的免费SQL Server版本。

#4


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.

如果你想在.NET中进行拼写检查,连字符或需要词库,你可以试试NHunspell。它是OpenOffice,Google Chrome和Firefox拼写检查器Hunspell的.NET版本,具有所有这些功能。它可以使用OO词典。

NHunspell Project Homepage

NHunspell项目主页

#5


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

对于查看此问题的用户,请参阅以下链接。它指出了读取WordNet数据库的各种C#实现。

#6


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.

这里列出的API:http://wordnet.princeton.edu/wordnet/related-projects/#.NET,Matt Gerber's(http://ptl.sys.virginia.edu/ptl/members/matthew-gerber/software #WordNet_API)是最好的。

It's not a great API, but it works okay and it was a good start for what I needed.

它不是一个很好的API,但它可以正常工作,这是我需要的一个良好的开端。

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.

我还没有尝试过Proxem的Antelope,因为它看起来更像是一个重量级应用程序,然后是一个简单的API。但它可能更强大。

There's also a SharpWordNet library as part of the SharpNLP project that I haven't tried yet.

还有一个SharpWordNet库作为SharpNLP项目的一部分,我还没有尝试过。