edu.stanford.nlp.ie.machinereading.domains.ace.reader
Class AceEntityMention

java.lang.Object
  extended by edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceElement
      extended by edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceMention
          extended by edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceEntityMention

public class AceEntityMention
extends AceMention

Implements the ACE construct


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
 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)
           
 
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()
Overrides:
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()
Overrides:
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)
Overrides:
toXml in class AceMention

detectHeadToken

public 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!


before

public boolean before(AceEntityMention em)
Verifies if this mention appears before the parameter in textual order


after

public boolean after(AceEntityMention em)
Verifies if this mention appears after the parameter in textual order



Stanford NLP Group