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

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.AceEventMention

public class AceEventMention
extends AceMention

Stores one ACE event mention


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
AceEventMention(java.lang.String id, AceCharSeq extent, AceCharSeq anchor)
           
 
Method Summary
 void addArg(AceEntityMention em, java.lang.String role)
           
 AceCharSeq getAnchor()
           
 AceEntityMention getArg(java.lang.String role)
           
 java.util.Collection<AceEventMentionArgument> getArgs()
           
 int getMaxTokenEnd()
          Returns the largest start of all argument heads (or the beginning of the mention's extent if there are no arguments)
 int getMinTokenStart()
          Returns the smallest start of all argument heads (or the beginning of the mention's extent if there are no arguments)
 AceEvent getParent()
           
 java.util.Set<java.lang.String> getRoles()
           
 void setAnchor(AceCharSeq anchor)
           
 void setParent(AceEvent e)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceMention
getExtent, toXml
 
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

AceEventMention

public AceEventMention(java.lang.String id,
                       AceCharSeq extent,
                       AceCharSeq anchor)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getArgs

public java.util.Collection<AceEventMentionArgument> getArgs()

getRoles

public java.util.Set<java.lang.String> getRoles()

getArg

public AceEntityMention getArg(java.lang.String role)

addArg

public void addArg(AceEntityMention em,
                   java.lang.String role)

setParent

public void setParent(AceEvent e)

getParent

public AceEvent getParent()

setAnchor

public void setAnchor(AceCharSeq anchor)

getAnchor

public AceCharSeq getAnchor()

getMinTokenStart

public int getMinTokenStart()
Returns the smallest start of all argument heads (or the beginning of the mention's extent if there are no arguments)


getMaxTokenEnd

public int getMaxTokenEnd()
Returns the largest start of all argument heads (or the beginning of the mention's extent if there are no arguments)



Stanford NLP Group