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, MentionChain
s should be
attached to the entire Document
since that is their context.
- Since:
- 1.0
- Author:
- Kirk Roberts
TYPE
static final AnnotationType<MentionChain> TYPE
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.