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

时间:2013-07-08 13:20:36

标签: java apache lucene information-retrieval stop-words

Lucene有一个默认的停止过滤器(http://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html),是否有人知道列表中的哪些词?

1 个答案:

答案 0 :(得分:37)

StandardAnalyzerEnglishAnalyzer中设置的默认停用词来自StopAnalyzer.ENGLISH_STOP_WORDS_SET,它们是:

"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本身没有定义一组默认的停用词。