org.schwiebert.abl4j.select.methods
Class TermsSelectMethod
java.lang.Object
org.schwiebert.abl4j.select.methods.AbstractSelectMethod
org.schwiebert.abl4j.select.methods.TermsSelectMethod
- All Implemented Interfaces:
- IConfigurable, SelectMethod
public class TermsSelectMethod
- extends AbstractSelectMethod
The method leaf (or terms) computes the probability of a hypothesis
by counting the number of times the particular words of the
hypothesis have occurred in the learned text as a hypothesis, divided
by the total number of hypotheses.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TermsSelectMethod
public TermsSelectMethod()
createPhrase
public Phrase createPhrase(ITree t,
IConstituent cons,
int c)
- Specified by:
createPhrase in class AbstractSelectMethod
computeCombinedProbability
public double computeCombinedProbability(ITree<?> t,
Vector<IConstituent<?>> vc,
ProbabilityStore prob)
- Specified by:
computeCombinedProbability in class AbstractSelectMethod
© 2007 Stephan Schwiebert