Package | Description |
---|---|
org.tribuo.classification.sgd.crf |
Provides an implementation of a linear chain CRF trained using Stochastic Gradient Descent.
|
Modifier and Type | Field and Description |
---|---|
ChainHelper.ChainCliqueValues |
ChainHelper.ChainBPResults.scores |
ChainHelper.ChainCliqueValues |
ChainHelper.ChainViterbiResults.scores |
Modifier and Type | Method and Description |
---|---|
ChainHelper.ChainCliqueValues |
CRFParameters.getCliqueValues(SparseVector[] features)
Generates the local scores and tuples them with the label - label transition weights.
|
Modifier and Type | Method and Description |
---|---|
static ChainHelper.ChainBPResults |
ChainHelper.beliefPropagation(ChainHelper.ChainCliqueValues scores)
Runs belief propagation on a linear chain CRF.
|
static double |
ChainHelper.constrainedBeliefPropagation(ChainHelper.ChainCliqueValues scores,
int[] constraints)
Runs constrained belief propagation on a linear chain CRF.
|
static ChainHelper.ChainViterbiResults |
ChainHelper.viterbi(ChainHelper.ChainCliqueValues scores)
Runs Viterbi on a linear chain CRF.
|
Constructor and Description |
---|
ChainBPResults(double logZ,
DenseVector[] alphas,
DenseVector[] betas,
ChainHelper.ChainCliqueValues scores) |
ChainViterbiResults(double mapScore,
int[] mapValues,
ChainHelper.ChainCliqueValues scores) |
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.