|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.grmm.learning.ACRF
public class ACRF
Class for Arbitrary CRFs. These are CRFs with completely arbitrary graphical structure. The user passes in a list of instances of ACRF.CliqueFactory, which get to look at the sequence and decide what
Nested Class Summary | |
---|---|
static class |
ACRF.BigramTemplate
A template that adds edges between adjacent nodes in a label sequence for one factor. |
static class |
ACRF.FixedFactorTemplate
|
static interface |
ACRF.GraphPostProcessor
Interface for making global transformations to an unrolled graph after it has been generated. |
class |
ACRF.MaximizableACRF
|
static class |
ACRF.PairwiseFactorTemplate
A template that adds edges between cotemporal nodes of a given pair of factors. |
static class |
ACRF.SequenceTemplate
Abstract class for Templates that expect a (FeatureVectorSequence, LabelsSequence) for their instances. |
static class |
ACRF.Template
A type of clique in the model. |
static class |
ACRF.UnigramTemplate
A template that adds node potentials for a given factor. |
static class |
ACRF.UnrolledGraph
|
static class |
ACRF.UnrolledVarSet
A clique in the unrolled graphical model (an instantiation of some Template). |
Constructor Summary | |
---|---|
ACRF(Pipe inputPipe,
ACRF.Template[] tmpls)
Create a ACRF for a 1-d sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ACRF(Pipe inputPipe, ACRF.Template[] tmpls) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Method Detail |
---|
public Alphabet getInputAlphabet()
public int getDefaultFeatureIndex()
public Inferencer getInferencer()
public void setInferencer(Inferencer inf)
public Inferencer getViterbiInferencer()
public void setViterbiInferencer(Inferencer inf)
public boolean isDoSizeScale()
public void setDoSizeScale(boolean doSizeScale)
public void setSupportedOnly(boolean b)
b
- If true, all templates will use supported features only. Otherwise, all unsupported features will be used.public boolean isCacheUnrolledGraphs()
public void setCacheUnrolledGraphs(boolean cacheUnrolledGraphs)
public void setFixedPotentials(ACRF.Template[] fixed)
public void addFixedPotentials(ACRF.Template[] tmpls)
public ACRF.Template[] getTemplates()
public Pipe getInputPipe()
public ACRF.Template[] getFixedTemplates()
public void addFixedPotential(ACRF.Template tmpl)
public double getGaussianPriorVariance()
public void setGaussianPriorVariance(double gaussianPriorVariance)
public void setGraphProcessor(ACRF.GraphPostProcessor graphProcessor)
public Optimizable.ByGradientValue getMaximizable(InstanceList ilst)
public java.util.List bestAssignment(InstanceList lst)
public Assignment bestAssignment(Instance inst)
public java.util.List getBestLabels(InstanceList lst)
public LabelsSequence getBestLabels(Instance inst)
public ACRF.UnrolledGraph unroll(Instance inst)
public ACRF.UnrolledGraph unrollStructureOnly(Instance inst)
public void print(java.io.OutputStream os)
public void dumpUnrolledGraphs(InstanceList lst)
public void readWeightsFromText(java.io.Reader reader) throws java.io.IOException
java.io.IOException
public void writeWeightsText(java.io.Writer writer)
public static ACRF makeFactorial(Pipe p, int numLevels)
public void setVerboseOutputDirectory(java.io.File dir)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |