edu.stanford.nlp.dcoref
Class CorefChain.CorefMention

java.lang.Object
  extended by edu.stanford.nlp.dcoref.CorefChain.CorefMention
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
CorefChain

public static class CorefChain.CorefMention
extends java.lang.Object
implements java.io.Serializable

Mention for coref output. This is one instance of the entity referred to by a given CorefChain.

See Also:
Serialized Form

Field Summary
 Dictionaries.Animacy animacy
           
 int corefClusterID
           
 int endIndex
          One past the end word number, indexed from 1
 Dictionaries.Gender gender
           
 int headIndex
          Head word of the mention
 int mentionID
           
 java.lang.String mentionSpan
           
 Dictionaries.MentionType mentionType
           
 Dictionaries.Number number
           
 IntTuple position
          Position is a binary tuple of (sentence number, mention number in that sentence).
 int sentNum
          Sentence number in the document containing this mention, indexed from 1.
 int startIndex
          Starting word number, indexed from 1
 
Constructor Summary
CorefChain.CorefMention(Dictionaries.MentionType mentionType, Dictionaries.Number number, Dictionaries.Gender gender, Dictionaries.Animacy animacy, int startIndex, int endIndex, int headIndex, int corefClusterID, int mentionID, int sentNum, IntTuple position, java.lang.String mentionSpan)
           
CorefChain.CorefMention(Mention m, IntTuple pos)
           
 
Method Summary
 boolean equals(java.lang.Object aThat)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

mentionType

public final Dictionaries.MentionType mentionType

number

public final Dictionaries.Number number

gender

public final Dictionaries.Gender gender

animacy

public final Dictionaries.Animacy animacy

startIndex

public final int startIndex
Starting word number, indexed from 1


endIndex

public final int endIndex
One past the end word number, indexed from 1


headIndex

public final int headIndex
Head word of the mention


corefClusterID

public final int corefClusterID

mentionID

public final int mentionID

sentNum

public final int sentNum
Sentence number in the document containing this mention, indexed from 1.


position

public final IntTuple position
Position is a binary tuple of (sentence number, mention number in that sentence). This is used for indexing by mention.


mentionSpan

public final java.lang.String mentionSpan
Constructor Detail

CorefChain.CorefMention

public CorefChain.CorefMention(Dictionaries.MentionType mentionType,
                               Dictionaries.Number number,
                               Dictionaries.Gender gender,
                               Dictionaries.Animacy animacy,
                               int startIndex,
                               int endIndex,
                               int headIndex,
                               int corefClusterID,
                               int mentionID,
                               int sentNum,
                               IntTuple position,
                               java.lang.String mentionSpan)

CorefChain.CorefMention

public CorefChain.CorefMention(Mention m,
                               IntTuple pos)
Method Detail

equals

public boolean equals(java.lang.Object aThat)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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


Stanford NLP Group