|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.mit.jmwe.data.StopWords
public class StopWords
Standard list of stop words, taken from Apache Lucene library. Copyright 2006 The Apache Software Foundation
Constructor Summary | |
---|---|
StopWords()
|
Method Summary | |
---|---|
static Set<String> |
get()
Returns a set of some common English words that are not usually useful for searching. |
static boolean |
hasAllStopWords(Collection<? extends IHasForm> words)
Returns true if each form in the list is a stop word;
false otherwise. |
static boolean |
isStopWord(String lemma)
Returns true if the given lemma is a stop word. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StopWords()
Method Detail |
---|
public static Set<String> get()
public static boolean isStopWord(String lemma)
lemma
- the lemma to be checked
public static boolean hasAllStopWords(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 checked
true
if each form in the list is a stop word;
false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |