|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.coref.resolver.AbstractResolver
opennlp.tools.coref.resolver.PerfectResolver
public class PerfectResolver
Resolver used in training to update the discourse model based on the coreference annotation.
| Constructor Summary | |
|---|---|
PerfectResolver()
|
|
| Method Summary | |
|---|---|
boolean |
canResolve(MentionContext ec)
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. |
| Methods inherited from class opennlp.tools.coref.resolver.AbstractResolver |
|---|
retain, setNumberSentencesBack, train |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerfectResolver()
| Method Detail |
|---|
public boolean canResolve(MentionContext ec)
Resolver
ec - The mention being considered for resolution.
public DiscourseEntity resolve(MentionContext ec,
DiscourseModel dm)
Resolver
ec - the referring expression.dm - the discourse model.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||