@Beta public abstract class PropbankRelation extends Object
A PropbankRelation object represents the relation (or a sub-relation) of one label of an entry in Propbank.
| Constructor and Description |
|---|
PropbankRelation() |
| Modifier and Type | Method and Description |
|---|---|
abstract Annotation |
convert(JCas jCas,
TopTreebankNode topNode)
Convert to an appropriate ClearTK annotation and add it to jCas if necessary.
|
static PropbankRelation |
fromString(String s)
Parses a relation taken form a Propbank entry and returns its representation as the appropriate
PropbankRelation object.
|
abstract String |
toString()
Re-generate the text that this object was parsed from.
|
public PropbankRelation()
public abstract Annotation convert(JCas jCas, TopTreebankNode topNode)
jCas - the view where the annotation will be addedtopNode - the top node annotation of the corresponding Treebank parsepublic static PropbankRelation fromString(String s)
s - the textual representation of a relation taken from prop.txtCopyright © 2014. All rights reserved.