public interface Labeler
Interface of CRF Labeler
Description:
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
double |
getBestSolution(DataSequence dataSeq,
int order)
Gets the order-th solution.
|
FeatureGenerator |
getFeatureGenerator()
Gets the feature generator
|
ModelGraph |
getModelGraph()
Gets the model graph
|
double[] |
getModelParameter()
Gets the parameters of the CRF model
|
boolean |
label(DataSequence dataSeq)
Labels the given sequence
|
boolean |
label(DataSequence dataSeq,
double[] lambda)
Labels the sequence using the given model
|
boolean |
readModelParameter(String filename)
Reads the parameters of the CRF model from a text file
|
ModelGraph getModelGraph()
FeatureGenerator getFeatureGenerator()
double[] getModelParameter()
boolean readModelParameter(String filename)
filename - the name of the file containing the model parametersboolean label(DataSequence dataSeq)
dataSeq - the sequence for labelingboolean label(DataSequence dataSeq, double[] lambda)
dataSeq - the sequence for labelinglambda - the parameters of the CRF modeldouble getBestSolution(DataSequence dataSeq, int order)
dataSeq - the data seqeunceorder - the ranking of the solutionsCopyright © 2018 JULIE Lab, Germany. All rights reserved.