java 开源词典库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7660839/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 20:52:30  来源:igfitidea点击:

Open Source dictionary libraries

javaopen-sourcedictionary

提问by clamp

I am looking for a free to use dictionary in as many spoken languages (english, french, german, ...) as possible.

我正在寻找尽可能多的口语(英语、法语、德语等)免费使用的词典。

basically i will need to check if a string exists in a dictionary.

基本上我需要检查字典中是否存在字符串。

i was thinking about the dictionaries used in firefox or openoffice, since they should be open-source, right? where can i find and download them?

我在考虑 Firefox 或 openoffice 中使用的字典,因为它们应该是开源的,对吗?我在哪里可以找到并下载它们?

also ideally exists a java library to access the data in the dictionary.

理想情况下还存在一个 java 库来访问字典中的数据。

回答by palacsint

回答by SANN3

There is a free dictionary available WordNet

WordNet有免费的字典可用

Please check this site http://wordnet.princeton.edu/

请检查这个网站 http://wordnet.princeton.edu/

To connect dictionary from java there are many api available. Some of them are.

要从 Java 连接字典,有许多可用的 api。他们之中有一些是。

http://projects.csail.mit.edu/jwi/

http://projects.csail.mit.edu/jwi/

http://sourceforge.net/projects/jwordnet/

http://sourceforge.net/projects/jwordnet/

回答by Martijn Courteaux

The Ubuntu Linux distribution comes with a plain English dictionary (words only). They are stored in

Ubuntu Linux 发行版带有简单的英语词典(仅限单词)。它们存储在

/usr/local/share/dict

I thought. Now I see palacsinthis answer popping up. I think it are the same dictionaries.

我想。现在我看到palacsint他的答案出现了。我认为它们是相同的字典。