net.sf.classifier4J
Class CustomizableStopWordProvider

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

public class CustomizableStopWordProvider
extends java.lang.Object
implements IStopWordProvider


Field Summary
static java.lang.String DEFAULT_STOPWORD_PROVIDER_RESOURCENAME
           
 
Constructor Summary
CustomizableStopWordProvider()
           
CustomizableStopWordProvider(java.lang.String resourcename)
           
 
Method Summary
protected  void init()
           
 boolean isStopWord(java.lang.String word)
          Check if a word is a stop word
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STOPWORD_PROVIDER_RESOURCENAME

public static final java.lang.String DEFAULT_STOPWORD_PROVIDER_RESOURCENAME
See Also:
Constant Field Values
Constructor Detail

CustomizableStopWordProvider

public CustomizableStopWordProvider(java.lang.String resourcename)
                             throws java.io.IOException

CustomizableStopWordProvider

public CustomizableStopWordProvider()
                             throws java.io.IOException
Method Detail

init

protected void init()
             throws java.io.IOException
java.io.IOException

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)


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