edu.stanford.nlp.ie.machinereading.domains.ace.reader
Class AceRelationMention
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.AceRelationMention
public class AceRelationMention
- extends AceMention
Stores one ACE relation 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 edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceMention |
getExtent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AceRelationMention
public AceRelationMention(java.lang.String id,
AceCharSeq extent,
java.lang.String lc)
getArgs
public AceRelationMentionArgument[] getArgs()
getArg
public AceEntityMention getArg(int which)
setArg
public void setArg(int which,
AceEntityMention em,
java.lang.String role)
getFirstArg
public AceEntityMention getFirstArg()
- Retrieves the argument that appears *first* in the sentence
getLastArg
public AceEntityMention getLastArg()
- Retrieves the argument that appears *last* in the sentence
setParent
public void setParent(AceRelation e)
getParent
public AceRelation getParent()
getLexicalCondition
public java.lang.String getLexicalCondition()
getSentence
public int getSentence(AceDocument doc)
- Fetches the id of the sentence that contains this mention
getMinTokenStart
public int getMinTokenStart()
- Returns the smallest start of the two args heads
getMaxTokenEnd
public int getMaxTokenEnd()
- Returns the largest end of the two args heads
toXml
public java.lang.String toXml(int offset)
- Overrides:
toXml in class AceMention
Stanford NLP Group