com.aliasi.coref
Interface MentionFactory

All Known Implementing Classes:
AbstractMentionFactory, EnglishMentionFactory

public interface MentionFactory

A MentionFactory is responsible for creating and merging mentions and mention chains. It is able to create a mention from an underlying phrase and entity type. It can create a mention chain by promoting a mention. It is also responsible for handling the merging of a mention into a mention chain.

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

Method Summary
 Mention create(String phrase, String entityType)
          Return a mention based on the specified phrase and entity type.
 MentionChain promote(Mention mention, int offset)
          Returns a new mention chain based on the specified mention.
 

Method Detail

create

Mention create(String phrase,
               String entityType)
Return a mention based on the specified phrase and entity type.

Parameters:
phrase - Phrase underlying the mention created.
entityType - Type of the mention created.
Returns:
A mention based on the specified phrase and entity type.

promote

MentionChain promote(Mention mention,
                     int offset)
Returns a new mention chain based on the specified mention.

Parameters:
mention - Mention to promote to a mention chain.
Returns:
Mention chain constructed from the specified mention.