本文介绍了Lucene 的 StopFilter 中使用的默认停用词列表是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Lucene 有一个默认的停止过滤器 (http://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html),有谁知道列表中的单词是什么?
Lucene have a default stopfilter (http://lucene.apache.org/core/4_0_0/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html), does anyone know which are words in the list?
推荐答案
StandardAnalyzer 和 EnglishAnalyzer
中设置的 nofollow noreferrer">默认停用词 来自 StopAnalyzer.ENGLISH_STOP_WORDS_SET
,如:
The default stop words set in StandardAnalyzer
and EnglishAnalyzer
is from StopAnalyzer.ENGLISH_STOP_WORDS_SET
, as found in the source file:
"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
本身没有定义默认的停用词集.
StopFilter
itself defines no default set of stop words.
这篇关于Lucene 的 StopFilter 中使用的默认停用词列表是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!