edu.stanford.nlp.ie.machinereading.structure
Class EventMention
java.lang.Object
edu.stanford.nlp.ie.machinereading.structure.ExtractionObject
edu.stanford.nlp.ie.machinereading.structure.RelationMention
edu.stanford.nlp.ie.machinereading.structure.EventMention
- All Implemented Interfaces:
- java.io.Serializable
public class EventMention
- extends RelationMention
- Author:
- Andrey Gusev, Mihai
- See Also:
- Serialized Form
| Methods inherited from class edu.stanford.nlp.ie.machinereading.structure.RelationMention |
addArg, argsMatch, argsMatch, argsMatch, createUnrelatedRelation, filterUnrelatedRelations, getArg, getArgNames, getArgs, getEntityMentionArgs, getFirstSyntacticHeadPosition, getLastSyntacticHeadPosition, getSignature, isNegativeRelation, isUnrelatedLabel, makeUniqueId, printableObject, removeArgument, removeArguments, replaceGoldArgsWithPredicted, setArgNames, setSignature |
| Methods inherited from class edu.stanford.nlp.ie.machinereading.structure.ExtractionObject |
attributeMap, concatenateTypes, equals, getDocumentId, getExtent, getExtentString, getExtentTokenEnd, getExtentTokenStart, getFullValue, getObjectId, getSentence, getSpan, getSubType, getType, getTypeProbabilities, getValue, printableObject, setExtent, setSentence, setType, setTypeProbabilities, sortByExtent |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EventMention
public EventMention(java.lang.String objectId,
CoreMap sentence,
Span span,
java.lang.String type,
java.lang.String subtype,
ExtractionObject anchor,
java.util.List<ExtractionObject> args,
java.util.List<java.lang.String> argNames)
resetArguments
public void resetArguments()
removeFromParents
public void removeFromParents()
removeParent
public void removeParent(ExtractionObject p)
getModification
public java.lang.String getModification()
setModification
public void setModification(java.lang.String eventModification)
getAnchor
public ExtractionObject getAnchor()
getParents
public java.util.Set<ExtractionObject> getParents()
- If this EventMention is a subevent, this will return the parent event.
- Returns:
- the parent EventMention or null if this isn't a subevent.
getSingleParent
public ExtractionObject getSingleParent(CoreMap sentence)
addParent
public void addParent(EventMention p)
toString
public java.lang.String toString()
- Overrides:
toString in class RelationMention
contains
public boolean contains(EventMention e)
addArg
public void addArg(ExtractionObject a,
java.lang.String an,
boolean discardSameArgDifferentName)
setArgs
public void setArgs(java.util.List<ExtractionObject> args)
- Overrides:
setArgs in class RelationMention
addArgs
public void addArgs(java.util.List<ExtractionObject> args,
java.util.List<java.lang.String> argNames,
boolean discardSameArgDifferentName)
mergeEvent
public void mergeEvent(EventMention e,
boolean discardSameArgDifferentName)
Stanford NLP Group