|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRaccoon.SE.WordCleaner
This class is not meant to be instanciated all of its methods are static. It is simply a utility class to strip punctuatoin off of words. It also initilizes the stop word list (negative dictionary) and has a method that quickly tells you if a word is in the list.
Field Summary | |
static java.lang.String |
DEFAULT_STOP_FILE
|
Method Summary | |
static void |
initStopWord(java.lang.String fileName)
Initilizes the stopword list. |
static void |
main(java.lang.String[] args)
For Testing only |
static boolean |
stop_Word(java.lang.String word)
initStopWord Must be called before this method can be used. |
static java.lang.String |
stripPunc(java.lang.String old)
Null in Null out This method returns the orignal string with all of the leading and trailing puncuation stripped off Numbers are considered punctuation here. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String DEFAULT_STOP_FILE
Method Detail |
public static void main(java.lang.String[] args)
public static java.lang.String stripPunc(java.lang.String old)
old
- String to strip punctionation from
public static void initStopWord(java.lang.String fileName) throws java.io.IOException
fileName
- name of the file that contains the stopwords
java.io.IOException
public static boolean stop_Word(java.lang.String word)
initStopWord(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |