ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.select.methods
Class TermsSelectMethod

java.lang.Object
  extended by org.schwiebert.abl4j.select.methods.AbstractSelectMethod
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.schwiebert.abl4j.select.methods.AbstractSelectMethod
AbstractSelectMethod.SelectThread
 
Constructor Summary
TermsSelectMethod()
           
 
Method Summary
 double computeCombinedProbability(ITree<?> t, Vector<IConstituent<?>> vc, ProbabilityStore prob)
           
 Phrase createPhrase(ITree t, IConstituent cons, int c)
           
 
Methods inherited from class org.schwiebert.abl4j.select.methods.AbstractSelectMethod
computeProbability, configure, select
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermsSelectMethod

public TermsSelectMethod()
Method Detail

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

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert