public class FixedNonReferentialResolver extends Object implements NonReferentialResolver
| Constructor and Description |
|---|
FixedNonReferentialResolver(double nonReferentialProbability) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(MentionContext mention)
Designates that the specified mention be used for training.
|
double |
getNonReferentialProbability(MentionContext mention)
Returns the probability that the specified mention doesn't refer to any previous mention.
|
void |
train()
Trains a model based on the events given to this resolver via #addEvent.
|
public FixedNonReferentialResolver(double nonReferentialProbability)
public double getNonReferentialProbability(MentionContext mention)
NonReferentialResolvergetNonReferentialProbability in interface NonReferentialResolvermention - The mention under consideration.public void addEvent(MentionContext mention)
NonReferentialResolveraddEvent in interface NonReferentialResolvermention - The mention to be used. The mention id is used to determine
whether this mention is referential or non-referential.public void train()
throws IOException
NonReferentialResolvertrain in interface NonReferentialResolverIOException - When the model can not be written out.Copyright © 2019 The Apache Software Foundation. All rights reserved.