Class

org.mitre.jcarafe.crf

DenseSemiCrf

Related Doc: package crf

Permalink

abstract class DenseSemiCrf extends DenseCrf with SemiCrf

Linear Supertypes
SemiCrf, DenseCrf, Crf, PotentialScoring, Trainable[AbstractInstance], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DenseSemiCrf
  2. SemiCrf
  3. DenseCrf
  4. Crf
  5. PotentialScoring
  6. Trainable
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DenseSemiCrf(nls: Int, nfs: Int, segSize: Int, gPrior: Double)

    Permalink

Type Members

  1. type Matrix = Array[Array[Double]]

    Permalink
    Definition Classes
    PotentialScoring
  2. type Tensor = Array[Matrix]

    Permalink
    Definition Classes
    PotentialScoring

Abstract Value Members

  1. abstract def train(seqAccessor: AccessSeq[AbstractInstance], maxIters: Int, mi: Option[(CoreModel, Int) ⇒ Unit]): CoreModel

    Permalink
    Definition Classes
    CrfTrainable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var adjustible: Boolean

    Permalink

    When set to true, the Crf will allow the state-space to be dynamically sized - i.e.

    When set to true, the Crf will allow the state-space to be dynamically sized - i.e. the number of states is dependent on each sequence

    Definition Classes
    Crf
  5. var alpha: Matrix

    Permalink

    Alpha values.

    Alpha values. Need values for each segment length for each label (in general, Semi-CRF case)

    Definition Classes
    Crf
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def assign(v1: Array[Double], f: (Double) ⇒ Double): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  8. def assign1(v1: Array[Double], v2: Array[Double], f: (Double, Double) ⇒ Double): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  9. def backwardPass(iseq: Seq[AbstractInstance]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SemiCrfCrf
  10. var beta: Matrix

    Permalink

    Beta values.

    Beta values. Need values for each segment length for each label (in general, Semi-CRF case)

    Definition Classes
    Crf
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def computeScores(inst_features: Array[Array[Feature]], takeExp: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  13. final def computeScores(ri: Matrix, mi: Tensor, inst_features: Array[Array[Feature]], takeExp: Boolean, nls: Int, lambdas: Array[Double]): Unit

    Permalink
    Definition Classes
    PotentialScoring
  14. def computeScoresBackwards(inst_features_array: Seq[Seq[Feature]], takeExp: Boolean): Unit

    Permalink
    Definition Classes
    SemiCrf
  15. val curA: Array[Double]

    Permalink

    Current alpha values used for Forward-Backward computation

    Current alpha values used for Forward-Backward computation

    Definition Classes
    Crf
  16. var curNls: Int

    Permalink
    Definition Classes
    Crf
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. val featureExpectations: Array[Double]

    Permalink
    Definition Classes
    DenseCrf
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def forwardPass(iseq: IndexedSeq[AbstractInstance]): Double

    Permalink
    Attributes
    protected
    Definition Classes
    DenseSemiCrfDenseCrfCrf
  22. val gPrior: Double

    Permalink

    The Gaussian prior variance used as a regularizer

    The Gaussian prior variance used as a regularizer

    Definition Classes
    Crf
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def getCoreModel(): CoreModel

    Permalink
    Definition Classes
    CrfTrainable
  25. def getGradient(l2: Boolean, seqAccessor: AccessSeq[AbstractInstance]): Option[Double]

    Permalink
    Definition Classes
    DenseCrf
  26. def getGradient(seqAccessor: AccessSeq[AbstractInstance]): Option[Double]

    Permalink
    Definition Classes
    DenseCrfCrfTrainable
  27. def getLambdas: Array[Double]

    Permalink
    Definition Classes
    Trainable
  28. def gradOfSeq(iseq: IndexedSeq[AbstractInstance]): Double

    Permalink
    Definition Classes
    DenseSemiCrfDenseCrf
  29. val gradient: Array[Double]

    Permalink
    Definition Classes
    DenseCrf
  30. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  31. def initialize(): Unit

    Permalink
    Definition Classes
    CrfTrainable
  32. val invSigSqr: Double

    Permalink

    The value of the inverse square of the Gaussian prior

    The value of the inverse square of the Gaussian prior

    Definition Classes
    Crf
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. val lambdas: Array[Double]

    Permalink

    Parameter (lambda) vector

    Parameter (lambda) vector

    Definition Classes
    CrfTrainable
  35. def logSumExp(v1: Double, v2: Double): Double

    Permalink
    Attributes
    protected
    Definition Classes
    SemiCrf
  36. final def matrixMult(mat: Matrix, vec: Array[Double], rvec: Array[Double], alpha: Double, beta: Double, trans: Boolean): Unit

    Permalink
    Definition Classes
    PotentialScoring
  37. def matrixMultLog(mat: Matrix, vec: Array[Double], rvec: Array[Double], alpha: Double, beta: Double, trans: Boolean): Unit

    Permalink
    Definition Classes
    SemiCrf
  38. val mi: Tensor

    Permalink

    For each segment size, the mi matrix holds transition scores for adjacent labels

    For each segment size, the mi matrix holds transition scores for adjacent labels

    Definition Classes
    Crf
  39. val nGates: Int

    Permalink

    Number of neural gates per label (for NeuralCrf)

    Number of neural gates per label (for NeuralCrf)

    Definition Classes
    Crf
  40. val nNfs: Int

    Permalink

    Number of neural gate input features (for NeuralCrf)

    Number of neural gate input features (for NeuralCrf)

    Definition Classes
    Crf
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. val newA: Array[Double]

    Permalink

    Alpha values at the next position used for Forward-Backward computation

    Alpha values at the next position used for Forward-Backward computation

    Definition Classes
    Crf
  43. val nfs: Int

    Permalink

    Number of features

    Number of features

    Definition Classes
    Crf
  44. val nls: Int

    Permalink

    Number of labels/states

    Number of labels/states

    Definition Classes
    Crf
  45. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. val numParams: Int

    Permalink
    Definition Classes
    CrfTrainable
  48. def regularize(): Double

    Permalink
    Definition Classes
    DenseSemiCrfDenseCrf
  49. def reset(all: Boolean, slen: Int): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  50. def resetParameters(): Unit

    Permalink
    Definition Classes
    Crf
  51. val ri: Matrix

    Permalink

    For each segment size (general case) the ri matrix holds state scores for each label

    For each segment size (general case) the ri matrix holds state scores for each label

    Definition Classes
    Crf
  52. var scale: Array[Double]

    Permalink

    An array of scaling coefficients to avoid underflow without having to do computations in log space.

    An array of scaling coefficients to avoid underflow without having to do computations in log space. See Manning and Schutze Chapter 9 for details (there in the context of HMMs)

    Definition Classes
    Crf
  53. val segSize: Int

    Permalink

    The size of segments.

    The size of segments. Sizes greater than 1 indicate the model is a semi-CRF

    Definition Classes
    Crf
  54. def setArrayTo(ar: Array[Double], v: Double): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SemiCrf
  55. final def setMatrix(m: Matrix, v: Double = 0.0): Unit

    Permalink
    Definition Classes
    PotentialScoring
  56. final def setTensor(t: Tensor, v: Double = 0.0): Unit

    Permalink
    Definition Classes
    PotentialScoring
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  58. var t2: Array[Double]

    Permalink
    Definition Classes
    SemiCrf
  59. val tmp: Array[Double]

    Permalink
    Definition Classes
    Crf
  60. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  61. def train(seqAccessor: AccessSeq[AbstractInstance]): CoreModel

    Permalink
    Definition Classes
    Crf
  62. def vecSum(vec: Array[Double]): Double

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  63. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  65. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SemiCrf

Inherited from DenseCrf

Inherited from Crf

Inherited from PotentialScoring

Inherited from Trainable[AbstractInstance]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped