ABL4J (Alignment Based Learning for Java) - 0.9.7

org.schwiebert.abl4j.select.methods
Class FirstSelectMethod

java.lang.Object
  extended by org.schwiebert.abl4j.select.methods.AbstractSelectMethod
      extended by org.schwiebert.abl4j.select.methods.FirstSelectMethod
All Implemented Interfaces:
IConfigurable, SelectMethod

public class FirstSelectMethod
extends AbstractSelectMethod

A non-probablistic method that builds upon the assumption that a hypothesis that is learned earlier is always correct. This means that newly learned hypotheses that overlap with older ones are considered to be incorrect, and thus should be removed.


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

Field Detail

logger

private Logger logger

preserve

private boolean preserve
Constructor Detail

FirstSelectMethod

public FirstSelectMethod()
Method Detail

computeCombinedProbability

public double computeCombinedProbability(ITree<?> t,
                                         Vector<IConstituent<?>> vc,
                                         ProbabilityStore prob)
Specified by:
computeCombinedProbability in class AbstractSelectMethod

createPhrase

public Phrase createPhrase(ITree t,
                           IConstituent cons,
                           int c)
Specified by:
createPhrase in class AbstractSelectMethod

select

public void select(ITreeBank tb)
Specified by:
select in interface SelectMethod
Overrides:
select in class AbstractSelectMethod

selectFirst

private void selectFirst(ITreeBank tb)

selectFirstInTree

private void selectFirstInTree(ITree t)

ABL4J (Alignment Based Learning for Java) - 0.9.7

© 2007 Stephan Schwiebert