edu.stanford.nlp.tmt.model.llda

GibbsLabeledLDADocument

class GibbsLabeledLDADocument extends LabeledLDADocument[(String, Array[Int])] with HardAssignmentDocument

Holds a set of active labels, a bag of observations, and an assignment for each observation.

Linear Supertypes
HardAssignmentDocument, LabeledLDADocument[(String, Array[Int])], Stateful[(String, Array[Int])], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. GibbsLabeledLDADocument
  2. HardAssignmentDocument
  3. LabeledLDADocument
  4. Stateful
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GibbsLabeledLDADocument (id: String, labels: Array[Int], observed: Array[Int], assigned: Array[Int], theta: Array[Int], model: GibbsLabeledLDA)

    labels

    Active labels on this document

    observed

    observed terms

    assigned

    assigned topic for each term

    theta

    count of how many times each topic has been assigned

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. val assigned : Array[Int]

    assigned topic for each term

    assigned topic for each term

    Definition Classes
    GibbsLabeledLDADocumentHardAssignmentDocument
  8. def checkrep (): Unit

    Returns true or throws a RuntimeException

    Returns true or throws a RuntimeException

    Definition Classes
    GibbsLabeledLDADocumentHardAssignmentDocument
  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  14. def hasAssignments : Boolean

    Returns true if this document has assingments

    Returns true if this document has assingments

    Definition Classes
    HardAssignmentDocument
  15. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  16. val id : String

  17. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  18. val labels : Array[Int]

    Active labels on this document

    Active labels on this document

    Definition Classes
    GibbsLabeledLDADocumentLabeledLDADocument
  19. val model : GibbsLabeledLDA

  20. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  21. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. val observed : Array[Int]

    observed terms

    observed terms

    Definition Classes
    GibbsLabeledLDADocumentHardAssignmentDocumentLabeledLDADocument
  24. def reset (): Unit

    Clear all assignments

    Clear all assignments

    Definition Classes
    HardAssignmentDocumentStateful
  25. def signature : SparseArray[Double]

    Returns the per-label probability.

    Returns the per-label probability.

    Definition Classes
    GibbsLabeledLDADocumentLabeledLDADocument
  26. def state : (String, Array[Int])

    Gets the current state of this object.

    Gets the current state of this object.

    Definition Classes
    HardAssignmentDocumentStateful
  27. def state_= (state: (String, Array[Int])): Unit

    Sets the current state of this object.

    Sets the current state of this object.

    Definition Classes
    HardAssignmentDocumentStateful
  28. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  29. val theta : Array[Int]

    count of how many times each topic has been assigned

    count of how many times each topic has been assigned

    Definition Classes
    GibbsLabeledLDADocumentHardAssignmentDocument
  30. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from HardAssignmentDocument

Inherited from LabeledLDADocument[(String, Array[Int])]

Inherited from Stateful[(String, Array[Int])]

Inherited from AnyRef

Inherited from Any