|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcontrol.Operation
datapreparation.TextOperation
datapreparation.concept.Concept
public class Concept
Class implementing the concept extraction operation. The operation finds by concepts by both finding common parents between words, and by checking the category-relation of the words.
Constructor Summary | |
---|---|
Concept()
|
Method Summary | |
---|---|
Text |
extractConcepts(Text text)
Method for extracting concepts from a text. |
java.util.ArrayList<java.lang.String> |
findCategory(net.didion.jwnl.data.Synset candidate)
Method for finding the category of a synset. |
java.lang.String |
findCommonParent(net.didion.jwnl.data.Synset first,
net.didion.jwnl.data.Synset second)
Method for finding the common parent between two synsets. |
java.util.ArrayList |
findConcepts(java.lang.String candidate)
Method for finding concepts. |
java.util.ArrayList |
findParent(java.lang.String termString)
Method for finding the parent node of a word in WordNet |
net.didion.jwnl.data.Synset |
findSynset(java.lang.String term)
Method for getting the synset of a term. |
java.util.ArrayList |
getProperties()
Method for getting the properties. |
void |
initializeCandidates(java.util.ArrayList terms)
Method for finding the terms which have been disambiguated. |
void |
performOperation(DataSet dataSet)
Method for performing the operation. |
void |
setProperties(java.util.ArrayList properties)
Method 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 Concept()
Method Detail |
---|
public void performOperation(DataSet dataSet)
performOperation
in class Operation
dataSet
- The dataset being usedpublic void initializeCandidates(java.util.ArrayList terms)
terms
- The terms in the text.public Text extractConcepts(Text text)
text
- The text
public net.didion.jwnl.data.Synset findSynset(java.lang.String term)
term
- The term
public java.util.ArrayList findParent(java.lang.String termString)
termString
- The word
public java.lang.String findCommonParent(net.didion.jwnl.data.Synset first, net.didion.jwnl.data.Synset second)
first
- The first synsetsecond
- The second synset
public java.util.ArrayList<java.lang.String> findCategory(net.didion.jwnl.data.Synset candidate)
candidate
- The candidate synset
public java.util.ArrayList findConcepts(java.lang.String candidate)
candidate
- The candidate word
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 |