|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatapreparation.stopword.EnglishStopwords
public class EnglishStopwords
A class that eliminates English stopwords from a document.
Constructor Summary | |
---|---|
EnglishStopwords()
A constructor that loads the English stopwords file, and puts the words in a HashMap |
Method Summary | |
---|---|
java.lang.String |
getEngDefaultName()
A method that gets the textfile with English stopwords. |
boolean |
loadEng(java.lang.String filename)
A method that loads a file of the most common English words, and puts them in the HashMap |
boolean |
loadEngFromURL(java.lang.String filename)
A method that loads English stopwords from an URL. |
java.lang.String |
removeStopwords(java.lang.String sentence)
Method that removes English stopwords. |
java.lang.String |
stringCat(java.lang.String string1,
java.lang.String string2)
A method that concatenates two strings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnglishStopwords()
Method Detail |
---|
public java.lang.String getEngDefaultName()
public boolean loadEng(java.lang.String filename)
filename
- the filename of the most common words in English
public boolean loadEngFromURL(java.lang.String filename)
filename
-
public java.lang.String stringCat(java.lang.String string1, java.lang.String string2)
string1
- The first string to be concatenatedstring2
- The second string to be concatenated
public java.lang.String removeStopwords(java.lang.String sentence)
removeStopwords
in interface Stopwords
sentence
- The sentence that stopwords should be removed from.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |