edu.mit.jmwe.data
Class StopWords

java.lang.Object
  extended by edu.mit.jmwe.data.StopWords

public class StopWords
extends Object

Standard list of stop words, taken from Apache Lucene library. Copyright 2006 The Apache Software Foundation

Since:
jMWE 1.0.0
Version:
$Id: StopWords.java 620 2011-05-08 21:13:58Z markaf $
Author:
N. Kulkarni, M.A. Finlayson

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

StopWords

public StopWords()
Method Detail

get

public static Set<String> get()
Returns a set of some common English words that are not usually useful for searching.

Since:
jMWE 1.0.0

isStopWord

public static boolean isStopWord(String lemma)
Returns true if the given lemma is a stop word.

Parameters:
lemma - the lemma to be checked
Returns:
true if the given lemma is a stop word.
Since:
jMWE 1.0.0

hasAllStopWords

public static boolean hasAllStopWords(Collection<? extends IHasForm> words)
Returns true if each form in the list is a stop word; false otherwise.

Parameters:
words - the collection of stop words to be checked
Returns:
true if each form in the list is a stop word; false otherwise
Since:
jMWE 1.0.0


Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.