public class CorefChain extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CorefChain.CorefMention
Mention for coref output.
|
protected static class |
CorefChain.CorefMentionComparator |
protected static class |
CorefChain.MentionComparator |
Constructor and Description |
---|
CorefChain(CorefCluster c,
Map<Mention,IntTuple> positions) |
CorefChain(int cid,
Map<IntPair,Set<CorefChain.CorefMention>> mentionMap,
CorefChain.CorefMention representative)
Constructor required by CustomAnnotationSerializer
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aThat) |
int |
getChainID() |
Map<IntPair,Set<CorefChain.CorefMention>> |
getMentionMap() |
List<CorefChain.CorefMention> |
getMentionsInTextualOrder()
get List of CorefMentions
|
Set<CorefChain.CorefMention> |
getMentionsWithSameHead(int sentenceNumber,
int headIndex)
get CorefMention by position
|
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() |
String |
toString() |
public CorefChain(CorefCluster c, Map<Mention,IntTuple> positions)
public CorefChain(int cid, Map<IntPair,Set<CorefChain.CorefMention>> mentionMap, CorefChain.CorefMention representative)
public List<CorefChain.CorefMention> getMentionsInTextualOrder()
public Set<CorefChain.CorefMention> getMentionsWithSameHead(IntPair position)
public Set<CorefChain.CorefMention> getMentionsWithSameHead(int sentenceNumber, int headIndex)
public Map<IntPair,Set<CorefChain.CorefMention>> getMentionMap()
public CorefChain.CorefMention getRepresentativeMention()
public int getChainID()