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

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

public class AceRelationMention
extends AceMention

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

Constructor Detail

AceRelationMention

public AceRelationMention(java.lang.String id,
                          AceCharSeq extent,
                          java.lang.String lc)
Method Detail

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