com.languagecomputer.api.text
Interface MentionChain

All Superinterfaces:
Text
All Known Implementing Classes:
DefaultMentionChain

public interface MentionChain
extends Text

Representation of a coreference mention chain. Mention chains are simply a collection of text spans that all refer to the same thing within a single Document.

Unlike other Text annotations, MentionChains should be attached to the entire Document since that is their context.

Since:
1.0
Author:
Kirk Roberts

Field Summary
static AnnotationType<MentionChain> TYPE
           
 
Method Summary
 List<Text> getMentions()
          Returns the mentions in this chain.
 
Methods inherited from interface com.languagecomputer.api.text.Text
getAnnotationType, getCongruentAnnotations, getDocument, getDocumentID, getEndCharOffset, getIntersectingAnnotations, getRawString, getStartCharOffset, getSubAnnotations, getSuperAnnotations
 

Field Detail

TYPE

static final AnnotationType<MentionChain> TYPE
Method Detail

getMentions

List<Text> getMentions()
Returns the mentions in this chain. The returned list should be in a sorted order based on appearance within the Document. In future revisions, there might be a getBestMention method that identifies the most explicit mention, but for now a good heuristic is just to take the first item (or the biggest item) in the returned list.

Returns:
A List of mentions that all refer to the same thing.


Copyright © 2009. All Rights Reserved.