public abstract class AbstractCRF extends Object
Abstract class for conditional random field
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected EdgeGenerator |
edgeGen |
protected FeatureGenerator |
featureGenerator |
protected double[] |
lambda |
protected ModelGraph |
model |
| Constructor and Description |
|---|
AbstractCRF(ModelGraph model,
FeatureGenerator featureGen) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeTransMatrix(double[] lambda,
DataSequence data,
int startPos,
int endPos,
DoubleDenseMatrix transMatrix,
boolean takeExp) |
protected void |
computeTransMatrix(double[] lambda,
DoubleDenseMatrix transMatrix,
boolean takeExp) |
FeatureGenerator |
getFeatureGenerator() |
ModelGraph |
getModelGraph() |
double[] |
getModelParameter() |
boolean |
readModelParameter(String filename) |
boolean |
saveModelParameter(String filename) |
protected EdgeGenerator edgeGen
protected FeatureGenerator featureGenerator
protected ModelGraph model
protected double[] lambda
public AbstractCRF(ModelGraph model, FeatureGenerator featureGen)
public FeatureGenerator getFeatureGenerator()
public ModelGraph getModelGraph()
public double[] getModelParameter()
public boolean saveModelParameter(String filename)
public boolean readModelParameter(String filename)
protected void computeTransMatrix(double[] lambda,
DataSequence data,
int startPos,
int endPos,
DoubleDenseMatrix transMatrix,
boolean takeExp)
protected void computeTransMatrix(double[] lambda,
DoubleDenseMatrix transMatrix,
boolean takeExp)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.