org.schwiebert.abl4j.select.methods
Class AbstractSelectMethod
java.lang.Object
org.schwiebert.abl4j.select.methods.AbstractSelectMethod
- All Implemented Interfaces:
- IConfigurable, SelectMethod
- Direct Known Subclasses:
- ConstituentSelectMethod, FirstSelectMethod, TermsSelectMethod
public abstract class AbstractSelectMethod
- extends Object
- implements SelectMethod
|
Method Summary |
abstract double |
computeCombinedProbability(ITree<?> t,
Vector<IConstituent<?>> vector,
ProbabilityStore prob)
|
private void |
computeProbabilities(ITreeBank tb,
ProbabilityStore prob)
|
private void |
computeProbabilitiesInTree(ITree<?> t,
ProbabilityStore store)
|
protected double |
computeProbability(Phrase p,
ProbabilityStore store)
|
void |
configure(PropertiesMap properties)
|
abstract Phrase |
createPhrase(ITree<?> t,
IConstituent<?> cons,
int c)
|
private IConstituent<?> |
findConstituent(Vector<IConstituent<?>> overlap,
int begin,
int end)
|
private boolean |
less(double a,
double b)
|
private boolean |
lessOrEqual(double a,
double b)
|
void |
select(ITreeBank tb)
|
private void |
selectProbability(ITreeBank tb,
ProbabilityStore store)
|
private Vector<IConstituent<?>> |
selectProbabilityInRange(ITree<?> t,
Vector<IConstituent<?>> overlap,
int begin,
int end,
KnowledgeBase known,
ProbabilityStore store)
|
private void |
selectProbabilityInTree(ITree t,
ProbabilityStore store)
|
| 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
forceCompatibility
private boolean forceCompatibility
numberOfThreads
private int numberOfThreads
AbstractSelectMethod
public AbstractSelectMethod()
createPhrase
public abstract Phrase createPhrase(ITree<?> t,
IConstituent<?> cons,
int c)
computeCombinedProbability
public abstract double computeCombinedProbability(ITree<?> t,
Vector<IConstituent<?>> vector,
ProbabilityStore prob)
configure
public void configure(PropertiesMap properties)
- Specified by:
configure in interface IConfigurable
select
public void select(ITreeBank tb)
- Specified by:
select in interface SelectMethod
selectProbability
private void selectProbability(ITreeBank tb,
ProbabilityStore store)
computeProbability
protected double computeProbability(Phrase p,
ProbabilityStore store)
selectProbabilityInTree
private void selectProbabilityInTree(ITree t,
ProbabilityStore store)
computeProbabilities
private void computeProbabilities(ITreeBank tb,
ProbabilityStore prob)
computeProbabilitiesInTree
private void computeProbabilitiesInTree(ITree<?> t,
ProbabilityStore store)
lessOrEqual
private boolean lessOrEqual(double a,
double b)
less
private boolean less(double a,
double b)
selectProbabilityInRange
private Vector<IConstituent<?>> selectProbabilityInRange(ITree<?> t,
Vector<IConstituent<?>> overlap,
int begin,
int end,
KnowledgeBase known,
ProbabilityStore store)
findConstituent
private IConstituent<?> findConstituent(Vector<IConstituent<?>> overlap,
int begin,
int end)
© 2007 Stephan Schwiebert