public class StopWords
extends java.lang.Object
Constructor and Description |
---|
StopWords() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set<java.lang.String> |
get()
Returns a set of some common English words that are not usually useful
for searching.
|
static boolean |
hasAllStopWords(java.util.Collection<? extends IHasForm> words)
Returns
true if each form in the list is a stop word;
false otherwise. |
static boolean |
isStopWord(java.lang.String lemma)
Returns true if the given lemma is a stop word.
|
public static java.util.Set<java.lang.String> get()
public static boolean isStopWord(java.lang.String lemma)
lemma
- the lemma to be checkedpublic static boolean hasAllStopWords(java.util.Collection<? extends IHasForm> words)
true
if each form in the list is a stop word;
false
otherwise.words
- the collection of stop words to be checkedtrue
if each form in the list is a stop word;
false
otherwiseCopyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.