public interface Resolver
| Modifier and Type | Method and Description |
|---|---|
boolean |
canResolve(MentionContext mention)
Returns true if this resolver is able to resolve the referring expression of the same type
as the specified mention.
|
DiscourseEntity |
resolve(MentionContext ec,
DiscourseModel dm)
Resolve this referring expression to a discourse entity in the discourse model.
|
DiscourseEntity |
retain(MentionContext mention,
DiscourseModel model)
Uses the specified mention and discourse model to train this resolver.
|
void |
train()
Retrains model on examples for which retain was called.
|
boolean canResolve(MentionContext mention)
mention - The mention being considered for resolution.DiscourseEntity resolve(MentionContext ec, DiscourseModel dm)
ec - the referring expression.dm - the discourse model.DiscourseEntity retain(MentionContext mention, DiscourseModel model)
mention - The mention which is being used for training.model - the discourse model.void train()
throws IOException
IOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.