com.aliasi.coref
Class MentionChainImpl

java.lang.Object
  extended by com.aliasi.coref.AbstractMentionChain
      extended by com.aliasi.coref.MentionChainImpl
All Implemented Interfaces:
MentionChain

public class MentionChainImpl
extends AbstractMentionChain

An implementation of mention chains.

Since:
LingPipe1.0
Version:
3.9.1
Author:
Bob Carpenter

Field Summary
 
Fields inherited from class com.aliasi.coref.AbstractMentionChain
mEntityType, mGender, mHonorifics
 
Constructor Summary
MentionChainImpl(Mention mention, int offset, int id)
          Construct a mention chain implementation containing the single specified mention at the specified offset, assigning the chain the specified identifier.
 
Method Summary
protected  void add(Mention mention)
          Adds the specified mention appearing at the specified sentence offset to this mention chain.
 Killer[] killers()
          The killing functions defined for this mention chain.
 Matcher[] matchers()
          The matching functions defined for this mention chain.
 
Methods inherited from class com.aliasi.coref.AbstractMentionChain
add, addHonorific, entityType, equals, equals, gender, hashCode, honorifics, identifier, killed, matchScore, maxSentenceOffset, mentions, setEntityType, setGender, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MentionChainImpl

public MentionChainImpl(Mention mention,
                        int offset,
                        int id)
Construct a mention chain implementation containing the single specified mention at the specified offset, assigning the chain the specified identifier.

Parameters:
mention - Mention to add to mention chain.
offset - Sentence offset of mention in document.
id - Identifier for resulting mention chain.
Method Detail

matchers

public Matcher[] matchers()
The matching functions defined for this mention chain.

Specified by:
matchers in class AbstractMentionChain
Returns:
The matching functiosn for this mention chain.

killers

public Killer[] killers()
The killing functions defined for this mention chain.

Specified by:
killers in class AbstractMentionChain
Returns:
The killing functions for this mention chain.

add

protected void add(Mention mention)
Adds the specified mention appearing at the specified sentence offset to this mention chain. Computes the new set of matchers for this descriptor, as well as setting the gender if the specified mention resolves it.

Overrides:
add in class AbstractMentionChain
Parameters:
mention - Mention to add to this chain.