@Beta public class PropbankNodeRelation extends PropbankRelation
A PropbankNodeRelation object represents a reference to one node in Propbank.
, Philipp Wetzler| Modifier and Type | Field and Description |
|---|---|
protected int |
height |
protected int |
terminalNumber |
| Constructor and Description |
|---|
PropbankNodeRelation(int terminalNumber,
int height) |
| Modifier and Type | Method and Description |
|---|---|
TreebankNode |
convert(JCas jCas,
TopTreebankNode topNode)
Convert to an appropriate ClearTK annotation and add it to jCas if necessary.
|
static PropbankNodeRelation |
fromString(String s) |
int |
getHeight() |
int |
getTerminalNumber() |
void |
setHeight(int height) |
void |
setTerminalNumber(int terminalNumber) |
String |
toString()
Re-generate the text that this object was parsed from.
|
protected int height
protected int terminalNumber
public PropbankNodeRelation(int terminalNumber, int height)
public TreebankNode convert(JCas jCas, TopTreebankNode topNode)
PropbankRelationconvert in class PropbankRelationjCas - the view where the annotation will be addedtopNode - the top node annotation of the corresponding Treebank parsepublic static PropbankNodeRelation fromString(String s)
public int getHeight()
public int getTerminalNumber()
public void setHeight(int height)
public void setTerminalNumber(int terminalNumber)
public String toString()
PropbankRelationtoString in class PropbankRelationCopyright © 2014. All rights reserved.