Trait

org.mitre.jcarafe.crf

GeneralizedEMCrf

Related Doc: package crf

Permalink

trait GeneralizedEMCrf extends Crf

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

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 val empiricalDist: Boolean

    Permalink
  2. abstract def forwardPass(iseq: IndexedSeq[AbstractInstance]): Double

    Permalink
    Attributes
    protected
    Definition Classes
    Crf
  3. abstract def getGradient(seqAccessor: AccessSeq[AbstractInstance]): Option[Double]

    Permalink
    Definition Classes
    CrfTrainable
  4. 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
    Definition Classes
    GeneralizedEMCrfCrf
  10. def backwardPassConstrained(iseq: Seq[AbstractInstance]): Unit

    Permalink
  11. 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
  12. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    PotentialScoring
  15. def computeScoresConstrained(absInstSeq: Seq[AbstractInstance], pos: Int, takeExp: Boolean): Unit

    Permalink
  16. var conBeta: Matrix

    Permalink

    Constrained Beta values.

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

  17. var conCurA: Array[Double]

    Permalink

    Current constrained alpha values used for Forward-Backward computation

  18. val conMarginalState: Array[Double]

    Permalink
  19. val conMarginals: Matrix

    Permalink
  20. var conMi: Tensor

    Permalink

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

  21. var conNewA: Array[Double]

    Permalink

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

  22. var conRi: Matrix

    Permalink

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

  23. var conScale: Array[Double]

    Permalink
  24. var conTmp: Array[Double]

    Permalink
  25. val curA: Array[Double]

    Permalink

    Current alpha values used for Forward-Backward computation

    Current alpha values used for Forward-Backward computation

    Definition Classes
    Crf
  26. var curNls: Int

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  30. val gPrior: Double

    Permalink

    The Gaussian prior variance used as a regularizer

    The Gaussian prior variance used as a regularizer

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

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

    Permalink
    Definition Classes
    CrfTrainable
  33. def getLambdas: Array[Double]

    Permalink
    Definition Classes
    Trainable
  34. def hashCode(): Int

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

    Permalink
    Definition Classes
    CrfTrainable
  36. 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
  37. final def isInstanceOf[T0]: Boolean

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

    Permalink

    Parameter (lambda) vector

    Parameter (lambda) vector

    Definition Classes
    CrfTrainable
  39. final def matrixMult(mat: Matrix, vec: Array[Double], rvec: Array[Double], alpha: Double, beta: Double, trans: Boolean): Unit

    Permalink
    Definition Classes
    PotentialScoring
  40. 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
  41. val nGates: Int

    Permalink

    Number of neural gates per label (for NeuralCrf)

    Number of neural gates per label (for NeuralCrf)

    Definition Classes
    Crf
  42. val nNfs: Int

    Permalink

    Number of neural gate input features (for NeuralCrf)

    Number of neural gate input features (for NeuralCrf)

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

    Permalink
    Definition Classes
    AnyRef
  44. 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
  45. val nfs: Int

    Permalink

    Number of features

    Number of features

    Definition Classes
    Crf
  46. val nls: Int

    Permalink

    Number of labels/states

    Number of labels/states

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

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

    Permalink
    Definition Classes
    AnyRef
  49. val numParams: Int

    Permalink
    Definition Classes
    CrfTrainable
  50. def printMi(m: Array[Array[Array[Double]]]): Unit

    Permalink
  51. def reset(all: Boolean, slen: Int): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    GeneralizedEMCrfCrf
  52. def resetParameters(): Unit

    Permalink
    Definition Classes
    Crf
  53. 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
  54. 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
  55. 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
  56. def setConstrainedMarginals(ri: Array[Double], mi: Matrix, pos: Int): Unit

    Permalink
  57. final def setMatrix(m: Matrix, v: Double = 0.0): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
  60. val tmp: Array[Double]

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

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

    Permalink
    Definition Classes
    Crf
  63. def updateScoreMatrices(iseq: Seq[AbstractInstance], pos: Int): Unit

    Permalink
    Attributes
    protected
  64. def vecSum(vec: Array[Double]): Double

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

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

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

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

Inherited from Crf

Inherited from PotentialScoring

Inherited from Trainable[AbstractInstance]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped