opennlp.tools.coref.resolver
Interface NonReferentialResolver

All Known Implementing Classes:
DefaultNonReferentialResolver, FixedNonReferentialResolver, SingletonNonReferentialResolver

public interface NonReferentialResolver

Provides the interface for a object to provide a resolver with a non-referential probability. Non-referential resolvers compute the probability that a particular mention refers to no antecedent. This probability can then compete with the probability that a mention refers with a specific antecedent.


Method Summary
 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.
 

Method Detail

getNonReferentialProbability

double getNonReferentialProbability(MentionContext mention)
Returns the probability that the specified mention doesn't refer to any previous mention.

Parameters:
mention - The mention under consideration.
Returns:
A probability that the specified mention doesn't refer to any previous mention.

addEvent

void addEvent(MentionContext mention)
Designates that the specified mention be used for training.

Parameters:
mention - The mention to be used. The mention id is used to determine whether this mention is referential or non-referential.

train

void train()
           throws IOException
Trains a model based on the events given to this resolver via #addEvent.

Throws:
IOException - When the model can not be written out.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.