net.sf.classifier4J
Class DefaultStopWordsProvider

java.lang.Object
  |
  +--net.sf.classifier4J.DefaultStopWordsProvider
All Implemented Interfaces:
IStopWordProvider

public class DefaultStopWordsProvider
extends java.lang.Object
implements IStopWordProvider

Author:
Nick Lothian, Peter Leschev

Constructor Summary
DefaultStopWordsProvider()
           
 
Method Summary
 java.lang.String[] getStopWords()
          getter method which can be overridden to supply the stop words.
 boolean isStopWord(java.lang.String word)
          Check if a word is a stop word
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultStopWordsProvider

public DefaultStopWordsProvider()
Method Detail

getStopWords

public java.lang.String[] getStopWords()
getter method which can be overridden to supply the stop words. The array returned by this method is sorted and then used internally

Returns:
the array of stop words

isStopWord

public boolean isStopWord(java.lang.String word)
Description copied from interface: IStopWordProvider
Check if a word is a stop word

Specified by:
isStopWord in interface IStopWordProvider
Parameters:
word - The word to check
Returns:
true if the word is a stop word, false otherwise
See Also:
IStopWordProvider.isStopWord(java.lang.String)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2005 Nick Lothian. All Rights Reserved.