|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.coref.resolver.DefaultNonReferentialResolver
public class DefaultNonReferentialResolver
Default implementation of the NonReferentialResolver interface.
| Constructor Summary | |
|---|---|
DefaultNonReferentialResolver(String projectName,
String name,
ResolverMode mode)
|
|
| Method Summary | |
|---|---|
void |
addEvent(MentionContext ec)
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultNonReferentialResolver(String projectName,
String name,
ResolverMode mode)
throws IOException
IOException| Method Detail |
|---|
public double getNonReferentialProbability(MentionContext mention)
NonReferentialResolver
getNonReferentialProbability in interface NonReferentialResolvermention - The mention under consideration.
public void addEvent(MentionContext ec)
NonReferentialResolver
addEvent in interface NonReferentialResolverec - 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
NonReferentialResolver
train in interface NonReferentialResolverIOException - When the model can not be written out.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||