|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcontrol.Operation
datapreparation.TextOperation
datapreparation.partofspeech.PartOfSpeech
public class PartOfSpeech
Class implementing the part-of speech operation. It uses a pre-trained Maximum Entropy tagger to tag a sentence, all words are extracted, and the tagged text is stored.
Constructor Summary | |
---|---|
PartOfSpeech()
Constructor for the part-of-speech operation. |
Method Summary | |
---|---|
java.util.ArrayList |
findSentences(java.lang.String text)
Method for finding the sentences in a text. |
java.util.ArrayList |
getProperties()
Method for getting the porperties. |
void |
performOperation(DataSet dataSet)
Method for performing the operation. |
java.lang.String |
removeChars(java.lang.String word)
Method for removing characters from a word |
void |
setProperties(java.util.ArrayList properties)
Method for setting the properties. |
Text |
tagTerms(Text text)
Method for tagging a text |
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 PartOfSpeech()
Method Detail |
---|
public void performOperation(DataSet dataSet)
performOperation
in class Operation
dataSet
- The datasetpublic Text tagTerms(Text text)
text
-
public java.util.ArrayList findSentences(java.lang.String text)
text
- The text
public java.lang.String removeChars(java.lang.String word)
word
- The word to clean
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 |