|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdatapreparation.stopword.NorwegianStopwords
public class NorwegianStopwords
A class that eliminates Norwegian stopwords from a document.
Constructor Summary | |
---|---|
NorwegianStopwords()
A constructor that loads the English stopwords file, and puts the words in a HashMap |
Method Summary | |
---|---|
java.lang.String |
getNorDefaultName()
A method that gets the textfile with English stopwords. |
boolean |
loadNor(java.lang.String filename)
A method that loads a file of the most common English words, and puts them in the HashMap |
boolean |
loadNorFromURL(java.lang.String filename)
A method that loads a file of the most common English words from an URL, and puts them in the HashMap |
java.lang.String |
removeStopwords(java.lang.String sentence)
A method that removes Norwegian stopwords from a sentence. |
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 NorwegianStopwords()
Method Detail |
---|
public java.lang.String getNorDefaultName()
public boolean loadNor(java.lang.String filename)
filename
- the filename of the most common words in English
public boolean loadNorFromURL(java.lang.String filename)
filename
- the filename of the most common words in English
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 string
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |