edu.stanford.nlp.ie.machinereading.domains.ace.reader
Class AceEventMention
java.lang.Object
edu.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.AceEventMention
public class AceEventMention
- extends AceMention
Stores one ACE event mention
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AceEventMention
public AceEventMention(java.lang.String id,
AceCharSeq extent,
AceCharSeq anchor)
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