|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.tumba.parser.StopWords
public class StopWords
Field Summary | |
---|---|
private static StopWords |
_theInstance
|
private static java.util.Hashtable |
indexStopwordDictionary
the hastable that stores the dictionary of stopwords |
private static java.lang.String[] |
indexStopwords
a list of stopwords for portuguese, spanish, english, german and french |
private static java.util.Hashtable |
internetStopwordDictionary
the hastable that stores the dictionary of internet specific stopwords |
private static java.lang.String[] |
internetStopwords
a list of internet specific stopwords |
private static java.util.Hashtable |
stopwordDictionary
the hastable that stores the dictionary of stopwords |
private static java.lang.String[] |
stopwords
a list of stopwords for portuguese, spanish, english, german and french |
Constructor Summary | |
---|---|
private |
StopWords()
|
Method Summary | |
---|---|
static StopWords |
getInstance()
|
static boolean |
isIndexStopWord(java.lang.String t)
checks if a given term is a stopword |
static boolean |
isInternetStopWord(java.lang.String t)
checks if a given term is an internet specific stopword |
static boolean |
isStopWord(java.lang.String t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.lang.String[] internetStopwords
private static java.util.Hashtable indexStopwordDictionary
private static java.lang.String[] indexStopwords
private static java.util.Hashtable stopwordDictionary
private static java.lang.String[] stopwords
private static java.util.Hashtable internetStopwordDictionary
private static final StopWords _theInstance
Constructor Detail |
---|
private StopWords()
Method Detail |
---|
public static StopWords getInstance()
public static boolean isInternetStopWord(java.lang.String t)
term
- a string with the term to be checked
public static boolean isStopWord(java.lang.String t)
public static boolean isIndexStopWord(java.lang.String t)
term
- a string with the term to be checked
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |