public class AceRelationMention extends AceMention
mExtent
mId
Constructor and Description |
---|
AceRelationMention(java.lang.String id,
AceCharSeq extent,
java.lang.String lc) |
Modifier and Type | Method and Description |
---|---|
AceEntityMention |
getArg(int which) |
AceRelationMentionArgument[] |
getArgs() |
AceEntityMention |
getFirstArg()
Retrieves the argument that appears *first* in the sentence
|
AceEntityMention |
getLastArg()
Retrieves the argument that appears *last* in the sentence
|
java.lang.String |
getLexicalCondition() |
int |
getMaxTokenEnd()
Returns the largest end of the two args heads
|
int |
getMinTokenStart()
Returns the smallest start of the two args heads
|
AceRelation |
getParent() |
int |
getSentence(AceDocument doc)
Fetches the id of the sentence that contains this mention
|
void |
setArg(int which,
AceEntityMention em,
java.lang.String role) |
void |
setParent(AceRelation e) |
java.lang.String |
toXml(int offset) |
getExtent
appendOffset, getId
public AceRelationMention(java.lang.String id, AceCharSeq extent, java.lang.String lc)
public AceRelationMentionArgument[] getArgs()
public AceEntityMention getArg(int which)
public void setArg(int which, AceEntityMention em, java.lang.String role)
public AceEntityMention getFirstArg()
public AceEntityMention getLastArg()
public void setParent(AceRelation e)
public AceRelation getParent()
public java.lang.String getLexicalCondition()
public int getSentence(AceDocument doc)
public int getMinTokenStart()
public int getMaxTokenEnd()
public java.lang.String toXml(int offset)
toXml
in class AceMention