public interface MentionFactory
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.| Modifier and Type | Method and Description |
|---|---|
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.
|
Mention create(String phrase, String entityType)
phrase - Phrase underlying the mention created.entityType - Type of the mention created.MentionChain promote(Mention mention, int offset)
mention - Mention to promote to a mention chain.Copyright © 2019 Alias-i, Inc.. All rights reserved.