Modifier and Type | Field and Description |
---|---|
protected String |
baseForm |
protected String |
filename |
protected String |
frameSet |
protected String |
inflectionValue |
protected List<Proplabel> |
proplabels |
protected String |
propTxt |
protected int |
sentenceNumber |
protected String |
taggerName |
protected PropbankRelation |
terminal |
Modifier | Constructor and Description |
---|---|
protected |
Propbank() |
Modifier and Type | Method and Description |
---|---|
void |
addProplabel(Proplabel proplabel) |
org.cleartk.srl.type.Predicate |
convert(JCas view,
org.cleartk.syntax.constituent.type.TopTreebankNode topNode,
org.cleartk.token.type.Sentence sentence)
Convert to ClearTK Predicate / SemanticArgument annotations and add them to
view.
|
String |
displayText()
Generate an easily readable multi-line description of this Propbank entry.
|
static String |
filenameFromString(String propTxt)
A convenience funtion to quickly read only the filename portion of a line from
prop.txt.
|
static Propbank |
fromString(String propTxt)
Parses one Propbank entry and returns its representation as a Propbank object.
|
String |
getBaseForm() |
String |
getFilename() |
String |
getFrameSet() |
String |
getInflectionValue() |
List<Proplabel> |
getPropLabels() |
String |
getPropTxt() |
int |
getSentenceNumber() |
String |
getTaggerName() |
PropbankRelation |
getTerminal() |
void |
setBaseForm(String baseForm) |
void |
setFilename(String filename) |
void |
setFrameSet(String frameSet) |
void |
setInflectionValue(String inflectionValue) |
void |
setPropLabels(List<Proplabel> proplabels) |
void |
setPropTxt(String propTxt) |
void |
setSentenceNumber(int sentenceNumber) |
void |
setTaggerName(String taggerName) |
void |
setTerminal(PropbankRelation terminal) |
String |
toString()
Re-generate the Propbank format line that this object was parsed from.
|
protected String inflectionValue
protected List<Proplabel> proplabels
protected int sentenceNumber
protected String taggerName
protected PropbankRelation terminal
protected Propbank()
public void addProplabel(Proplabel proplabel)
public org.cleartk.srl.type.Predicate convert(JCas view, org.cleartk.syntax.constituent.type.TopTreebankNode topNode, org.cleartk.token.type.Sentence sentence)
view
- the view where the annotations should be addedtopNode
- the top node annotation of the corresponding Treebank parsesentence
- the sentence annotation of the corresponding sentencepublic String displayText()
public static String filenameFromString(String propTxt)
propTxt
- one line from prop.txtpublic static Propbank fromString(String propTxt)
propTxt
- one line from prop.txtpublic String getBaseForm()
public String getFilename()
public String getFrameSet()
public String getInflectionValue()
public List<Proplabel> getPropLabels()
public String getPropTxt()
public int getSentenceNumber()
public String getTaggerName()
public PropbankRelation getTerminal()
public void setBaseForm(String baseForm)
public void setFilename(String filename)
public void setFrameSet(String frameSet)
public void setInflectionValue(String inflectionValue)
public void setPropLabels(List<Proplabel> proplabels)
public void setPropTxt(String propTxt)
public void setSentenceNumber(int sentenceNumber)
public void setTaggerName(String taggerName)
public void setTerminal(PropbankRelation terminal)
Copyright © 2014. All rights reserved.