Lucene 的 StopFilter 中使用的默认停用词列表是什么?

2024-04-23

Lucene 有一个默认的 stopfilter (http://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html http://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html),有谁知道列表中的单词是什么?


The 默认停用词 https://www.elastic.co/guide/en/elasticsearch/guide/current/stopwords.html set in StandardAnalyzer and EnglishAnalyzer来自StopAnalyzer.ENGLISH_STOP_WORDS_SET,如在源文件 https://github.com/apache/lucene-solr/blob/master/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/EnglishAnalyzer.java#L46:

"a", "an", "and", "are", "as", "at", "be", "but", "by",
"for", "if", "in", "into", "is", "it",
"no", "not", "of", "on", "or", "such",
"that", "the", "their", "then", "there", "these",
"they", "this", "to", "was", "will", "with"

StopFilter本身没有定义默认的停用词集。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Lucene 的 StopFilter 中使用的默认停用词列表是什么? 的相关文章

随机推荐