|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.dcoref.CorefChain
public class CorefChain
Output of coref system. Each CorefChain represents a set of entries in the text which should all correspond to the same actual entity. There is a representative mention, which stores the best mention of an entity, and then there is a sequence of other mentions which connect to that mention.
| Nested Class Summary | |
|---|---|
static class |
CorefChain.CorefMention
Mention for coref output. |
protected static class |
CorefChain.MentionComparator
|
| Constructor Summary | |
|---|---|
CorefChain(CorefCluster c,
java.util.HashMap<Mention,IntTuple> positions)
|
|
CorefChain(int cid,
java.util.Map<IntPair,java.util.Set<CorefChain.CorefMention>> mentionMap,
CorefChain.CorefMention representative)
Constructor required by CustomAnnotationSerializer |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object aThat)
|
int |
getChainID()
|
java.util.Map<IntPair,java.util.Set<CorefChain.CorefMention>> |
getMentionMap()
|
java.util.List<CorefChain.CorefMention> |
getMentionsInTextualOrder()
get List of CorefMentions |
java.util.Set<CorefChain.CorefMention> |
getMentionsWithSameHead(int sentenceNumber,
int headIndex)
get CorefMention by position |
java.util.Set<CorefChain.CorefMention> |
getMentionsWithSameHead(IntPair position)
get CorefMentions by position (sentence number, headIndex) Can be multiple mentions sharing headword |
CorefChain.CorefMention |
getRepresentativeMention()
Return the most representative mention in the chain. |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CorefChain(CorefCluster c,
java.util.HashMap<Mention,IntTuple> positions)
public CorefChain(int cid,
java.util.Map<IntPair,java.util.Set<CorefChain.CorefMention>> mentionMap,
CorefChain.CorefMention representative)
| Method Detail |
|---|
public boolean equals(java.lang.Object aThat)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.List<CorefChain.CorefMention> getMentionsInTextualOrder()
public java.util.Set<CorefChain.CorefMention> getMentionsWithSameHead(IntPair position)
public java.util.Set<CorefChain.CorefMention> getMentionsWithSameHead(int sentenceNumber,
int headIndex)
public java.util.Map<IntPair,java.util.Set<CorefChain.CorefMention>> getMentionMap()
public CorefChain.CorefMention getRepresentativeMention()
public int getChainID()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||