Package cc.mallet.fst

Class CRFOptimizableByLabelLikelihood

    • Field Detail

      • cachedValue

        protected double cachedValue
      • cachedGradient

        protected double[] cachedGradient
      • infiniteValues

        protected java.util.BitSet infiniteValues
      • crf

        protected CRF crf
    • Constructor Detail

      • CRFOptimizableByLabelLikelihood

        public CRFOptimizableByLabelLikelihood​(CRF crf,
                                               InstanceList ilist)
    • Method Detail

      • gatherConstraints

        protected void gatherConstraints​(InstanceList ilist)
      • setParameter

        public void setParameter​(int index,
                                 double value)
        Specified by:
        setParameter in interface Optimizable
      • getExpectationValue

        protected double getExpectationValue()
      • getValue

        public double getValue()
        Returns the log probability of the training sequence labels and the prior over parameters.
        Specified by:
        getValue in interface Optimizable.ByGradientValue
      • setUseHyperbolicPrior

        public void setUseHyperbolicPrior​(boolean f)
      • setHyperbolicPriorSlope

        public void setHyperbolicPriorSlope​(double p)
      • setHyperbolicPriorSharpness

        public void setHyperbolicPriorSharpness​(double p)
      • getUseHyperbolicPriorSlope

        public double getUseHyperbolicPriorSlope()
      • getUseHyperbolicPriorSharpness

        public double getUseHyperbolicPriorSharpness()
      • setGaussianPriorVariance

        public void setGaussianPriorVariance​(double p)
      • getGaussianPriorVariance

        public double getGaussianPriorVariance()