public class AceEntityMention extends AceMention
<entity_mention>
construct.mExtent
mId
Constructor and Description |
---|
AceEntityMention(java.lang.String id,
java.lang.String type,
java.lang.String ldctype,
AceCharSeq extent,
AceCharSeq head) |
Modifier and Type | Method and Description |
---|---|
void |
addEventMention(AceEventMention rm) |
void |
addRelationMention(AceRelationMention rm) |
boolean |
after(AceEntityMention em)
Verifies if this mention appears after the parameter in textual order
|
boolean |
before(AceEntityMention em)
Verifies if this mention appears before the parameter in textual order
|
void |
detectHeadToken(AceDocument doc)
Detects the head word of this mention
Heuristic:
(a) the last token in mHead, if there are no prepositions
(b) the last word before the first preposition
Note: the mHead must be already matched against tokens!
|
java.util.List<AceEventMention> |
getEventMentions() |
AceCharSeq |
getExtent() |
AceCharSeq |
getHead() |
int |
getHeadTokenPosition() |
java.lang.String |
getLdctype() |
java.lang.String |
getMention() |
AceEntity |
getParent() |
java.util.List<AceRelationMention> |
getRelationMentions() |
java.lang.String |
getType() |
void |
setLdctype(java.lang.String s) |
void |
setParent(AceEntity e) |
void |
setType(java.lang.String s) |
java.lang.String |
toString() |
java.lang.String |
toXml(int offset) |
appendOffset, getId
public AceEntityMention(java.lang.String id, java.lang.String type, java.lang.String ldctype, AceCharSeq extent, AceCharSeq head)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getMention()
public void setParent(AceEntity e)
public AceEntity getParent()
public AceCharSeq getHead()
public AceCharSeq getExtent()
getExtent
in class AceMention
public int getHeadTokenPosition()
public void setType(java.lang.String s)
public java.lang.String getType()
public void setLdctype(java.lang.String s)
public java.lang.String getLdctype()
public void addRelationMention(AceRelationMention rm)
public java.util.List<AceRelationMention> getRelationMentions()
public void addEventMention(AceEventMention rm)
public java.util.List<AceEventMention> getEventMentions()
public java.lang.String toXml(int offset)
toXml
in class AceMention
public void detectHeadToken(AceDocument doc)
public boolean before(AceEntityMention em)
public boolean after(AceEntityMention em)