|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.ie.machinereading.domains.ace.reader.AceElement
edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceMention
edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceEntityMention
public class AceEntityMention
Implements the ACE
Field Summary
Fields inherited from class edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceMention
mExtent
Fields inherited from class edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceElement
mId
Constructor Summary
AceEntityMention(java.lang.String id,
java.lang.String type,
java.lang.String ldctype,
AceCharSeq extent,
AceCharSeq head)
Method Summary
voidaddEventMention(AceEventMention rm)
voidaddRelationMention(AceRelationMention rm)
booleanafter(AceEntityMention em)
Verifies if this mention appears after the parameter in textual order
booleanbefore(AceEntityMention em)
Verifies if this mention appears before the parameter in textual order
voiddetectHeadToken(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()
AceCharSeqgetExtent()
AceCharSeqgetHead()
intgetHeadTokenPosition()
java.lang.StringgetLdctype()
java.lang.StringgetMention()
AceEntitygetParent()
java.util.List<AceRelationMention>getRelationMentions()
java.lang.StringgetType()
voidsetLdctype(java.lang.String s)
voidsetParent(AceEntity e)
voidsetType(java.lang.String s)
java.lang.StringtoString()
java.lang.StringtoXml(int offset)
Methods inherited from class edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceElement
appendOffset, getId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
AceEntityMention
public AceEntityMention(java.lang.String id,
java.lang.String type,
java.lang.String ldctype,
AceCharSeq extent,
AceCharSeq head)
Method Detail
toString
public java.lang.String toString()
toString in class java.lang.Object
getMention
public java.lang.String getMention()
setParent
public void setParent(AceEntity e)
getParent
public AceEntity getParent()
getHead
public AceCharSeq getHead()
getExtent
public AceCharSeq getExtent()
getExtent in class AceMention
getHeadTokenPosition
public int getHeadTokenPosition()
setType
public void setType(java.lang.String s)
getType
public java.lang.String getType()
setLdctype
public void setLdctype(java.lang.String s)
getLdctype
public java.lang.String getLdctype()
addRelationMention
public void addRelationMention(AceRelationMention rm)
getRelationMentions
public java.util.List<AceRelationMention> getRelationMentions()
addEventMention
public void addEventMention(AceEventMention rm)
getEventMentions
public java.util.List<AceEventMention> getEventMentions()
toXml
public java.lang.String toXml(int offset)
toXml in class AceMention
detectHeadToken
public void detectHeadToken(AceDocument doc)
before
public boolean before(AceEntityMention em)
after
public boolean after(AceEntityMention em)
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Stanford NLP Group