org.schwiebert.abl4j.select.methods
Class FirstSelectMethod
java.lang.Object
org.schwiebert.abl4j.select.methods.AbstractSelectMethod
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private Logger logger
preserve
private boolean preserve
FirstSelectMethod
public FirstSelectMethod()
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)
© 2007 Stephan Schwiebert