weka.core
Class Stopwords

java.lang.Object
  extended byweka.core.Stopwords

public class Stopwords
extends java.lang.Object

Class that can test whether a given string is a stop word. Lowercases all words before the test.

Version:
1.0
Author:
Eibe Frank (eibe@cs.waikato.ac.nz), Ashraf M. Kibriya (amk14@cs.waikato.ac.nz)

Field Summary
private static java.util.Hashtable m_Stopwords
          The hashtable containing the list of stopwords
 
Constructor Summary
Stopwords()
           
 
Method Summary
static boolean isStopword(java.lang.String str)
          Returns true if the given string is a stop word.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Stopwords

private static java.util.Hashtable m_Stopwords
The hashtable containing the list of stopwords

Constructor Detail

Stopwords

public Stopwords()
Method Detail

isStopword

public static boolean isStopword(java.lang.String str)
Returns true if the given string is a stop word.