|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.solver.SemiMarkovViterbiNoCache
public class SemiMarkovViterbiNoCache
viterbi algorithm for semi-Markov CRFs. Does not perform any caching, and does not correctly handle
NodeBoundary features. Use only if you have no NodeBoundary features and are running into memory limitations.
Requires that a SemiMarkovSetup be configured.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface calhoun.analysis.crf.CRFInference |
|---|
CRFInference.InferenceResult |
| Constructor Summary | |
|---|---|
SemiMarkovViterbiNoCache()
|
|
| Method Summary | |
|---|---|
boolean |
isAllPaths()
true if all paths (valid and invalid) are to be evaluated during the viterbi search. |
CRFInference.InferenceResult |
predict(ModelManager fm,
InputSequence<?> seq,
double[] lambda)
Return the labelling that maximizes the conditional probability P(y|x). |
void |
setAllPaths(boolean allPaths)
sets whether all paths (valid and invalid) are to be evaluated during the viterbi search. |
void |
setSemiMarkovSetup(SemiMarkovSetup setup)
sets up the semiMarkov parameters, such as maximum segment lengths. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SemiMarkovViterbiNoCache()
| Method Detail |
|---|
public boolean isAllPaths()
public void setAllPaths(boolean allPaths)
allPaths - allPath true if all paths are to be examinedpublic void setSemiMarkovSetup(SemiMarkovSetup setup)
setup - the parameters to use during the semi-Markov viterbi search
public CRFInference.InferenceResult predict(ModelManager fm,
InputSequence<?> seq,
double[] lambda)
CRFInference
predict in interface CRFInferencefm - model to use for trainingseq - input sequence to labellambda - array of feature weights. Usually these will be derived from a training pass.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||