de.aitools.ie.stopwords
Class StopWordList
java.lang.Object
de.aitools.ie.stopwords.StopWordList
public class StopWordList
- extends java.lang.Object
This class provides the functionality to check if a word is within a predefined stop word list.
Stop word list are available for the following languages: Dutch, English, Finnish, French, German, Italian,
Norwegian, Polish, Portuguese, Spanish, Swedish.
- Version:
- aitools 2.0
Created on 11.08.2008
$Id: StopWordList.java,v 1.2 2011/05/10 11:37:53 trenkman Exp $
- Author:
- maik.anderka@medien.uni-weimar.de
Constructor Summary |
StopWordList(java.util.Locale language)
Constructs a StopWordList for the specified language. |
Method Summary |
boolean |
contains(java.lang.String word)
Returns true if this stop word list contains the specified word. |
java.lang.String[] |
getStopWordList()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StopWordList
public StopWordList(java.util.Locale language)
- Constructs a StopWordList for the specified language.
- Parameters:
language
- Language.
- Throws:
java.io.FileNotFoundException
- If no stop word list exists for the specified language.
java.lang.IllegalArgumentException
- If language == null
.
contains
public boolean contains(java.lang.String word)
- Returns true if this stop word list contains the specified word.
- Parameters:
word
- Word whose presence in this stop word list is to be tested.
- Returns:
- true if this stop word list contains the specified word.
getStopWordList
public java.lang.String[] getStopWordList()