|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcontrol.Operation
datapreparation.TextOperation
datapreparation.stopword.Stopword
public class Stopword
Class implementing the stopword removal operation. Given the language used in the dataset, all stopwords are removed. Stopwords are given in the files: stopwords_en.txt and stopwords_no.txt.
Constructor Summary | |
---|---|
Stopword()
|
Method Summary | |
---|---|
java.util.ArrayList |
getProperties()
Method for getting the properties. |
void |
performOperation(DataSet dataSet)
Method for performing the operation. |
Text |
removeStopwordsInText(Text text)
Method for removing the stopwords in a given text. |
void |
setProperties(java.util.ArrayList properties)
Methods for setting the properties. |
Methods inherited from class control.Operation |
---|
getLogResult, setLogResult |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Stopword()
Method Detail |
---|
public void performOperation(DataSet dataSet)
performOperation
in class Operation
dataSet
- The datasetpublic Text removeStopwordsInText(Text text)
text
- The text
public java.util.ArrayList getProperties()
getProperties
in class Operation
public void setProperties(java.util.ArrayList properties)
setProperties
in class Operation
properties
- List of properties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |