Interface StopWords
- All Superinterfaces:
Dictionary, Iterable<String>
- All Known Implementing Classes:
EnglishStopWords
A set of stop words in some language. Stop words is the name given to word
s which are filtered out prior to, or after, processing of natural language
text. There is no definite list of stop words which all NLP
tools incorporate. Not all NLP tools use a stop list. Some
tools specifically avoid using them to support phrase search.
Stop words can cause problems when using a search engine to search for phrases that include them, particularly in names such as 'The Who', 'The The', or 'Take That'.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisNotStopWord(String word) Returns true if the word is NOT a stop word.Methods inherited from interface Dictionary
contains, iterator, size, streamMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
isNotStopWord
Returns true if the word is NOT a stop word. Convenience negation ofDictionary.contains(String).- Parameters:
word- the query word.- Returns:
- true if this dictionary does not contain the specified word.
-