public class Sentence
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Sentence(java.lang.String caseFrame,
java.lang.String clause) |
Modifier and Type | Method and Description |
---|---|
void |
addCaseFrame(java.lang.String caseFrame)
Parse case frame string and create case frame object for further processing
|
void |
addRelWfElement(WorkflowElement elem)
Adds related Workflow Elements to the sentence.
|
void |
addSegementInfo(java.lang.String in)
parse segements of the sentence constructed by ./nlp -seg
|
boolean |
equals(java.lang.Object obj) |
java.util.ArrayList<CaseFrame> |
getCaseFrames()
Returns the list of case frames
|
java.util.ArrayList<Clause> |
getClauseList()
Returns the clause list
|
int |
getPosOfRelated(WorkflowElement elem)
Returns the position of a related workflow element
|
java.lang.String |
getRaw()
Returns the raw sentence
|
java.util.ArrayList<WorkflowElement> |
getRelatedElem()
returns related elements of this sentence
|
int |
hashCode() |
void |
removeRelWfElement(WorkflowElement elem)
Removes related Workflow Elements to the sentence.
|
void |
setClauseList(java.util.ArrayList<Clause> clauseList)
Sets clause list
|
public void addCaseFrame(java.lang.String caseFrame)
public void addSegementInfo(java.lang.String in)
public void addRelWfElement(WorkflowElement elem)
elem
- public void removeRelWfElement(WorkflowElement elem)
elem
- public java.util.ArrayList<CaseFrame> getCaseFrames()
public java.lang.String getRaw()
public java.util.ArrayList<WorkflowElement> getRelatedElem()
public int getPosOfRelated(WorkflowElement elem)
elem
- public java.util.ArrayList<Clause> getClauseList()
public void setClauseList(java.util.ArrayList<Clause> clauseList)
clauseList
- public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object