java java中的词干库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4444943/
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 06:24:49  来源:igfitidea点击:

stemming library in java

javaapistemming

提问by Maverick

Is there any library for stemming in java!?

是否有任何用于在 Java 中进行词干提取的库!?

采纳答案by Thomas

There is an implementation of Porter's stemmer available on his website. The code is not very Java-ish, but it does what it's supposed to, plus it's only a single class.

在他的网站上有一个 Porter 词干分析器的实现。代码不是很 Java,但它做了它应该做的,而且它只是一个类。

回答by mindas

You might want to look at Apache Lucene. It is generally written to do other things, but it does some stemming as part of its indexing process.

您可能想查看Apache Lucene。它通常是为了做其他事情而编写的,但作为索引过程的一部分,它会进行一些词干化。

回答by necromancer

Updated Answer: Porter recommends a later version of what is available on his website. That is Snowball: http://snowball.tartarus.org/It is essentially a code generator that can generate a Javaor C stemmer based on a stemmer specification.

更新的答案:Porter 推荐了他网站上可用内容的更新版本。那就是 Snowball:http: //snowball.tartarus.org/它本质上是一个代码生成器,可以根据词干分析器规范生成Java或 C 词干分析器。