edu.stanford.nlp.tmt.model.plda

PLDA

trait PLDA [ModelState, Doc <: Stateful[DocState], DocState] extends TopicModel[PLDAModelParams, ModelState, LabeledLDADocumentParams, Doc, DocState] with ClosedTopicSet with DirichletTermSmoothing with DirichletTopicSmoothing

PLDA models.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. PLDA
  2. DirichletTopicSmoothing
  3. DirichletTermSmoothing
  4. ClosedTopicSet
  5. TopicModel
  6. RepCheck
  7. Stateful
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def create (docParams: LabeledLDADocumentParams): Doc

    Creates a document from the given document parameters.

    Creates a document from the given document parameters.

    Attributes
    abstract
    Definition Classes
    TopicModel
  2. def infer (doc: Doc): SparseArray[Double]

    Does inference on the given document until convergence.

    Does inference on the given document until convergence.

    Attributes
    abstract
  3. def pTopicTerm (topic: Int, term: Int): Double

    Returns the probability of the given term in the given topic.

    Returns the probability of the given term in the given topic.

    Attributes
    abstract
    Definition Classes
    ClosedTopicSet
  4. val params : PLDAModelParams

    The parameters used to create this model.

    The parameters used to create this model.

    Attributes
    abstract
    Definition Classes
    PLDATopicModel
  5. def reset (): Unit

    Resets to the default state.

    Resets to the default state.

    Attributes
    abstract
    Definition Classes
    Stateful
  6. def state : ModelState

    Gets the current state of this object.

    Gets the current state of this object.

    Attributes
    abstract
    Definition Classes
    Stateful
  7. def state_= (state: ModelState): Unit

    Sets the current state of this object.

    Sets the current state of this object.

    Attributes
    abstract
    Definition Classes
    Stateful

Concrete 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. var checkers : List[Function0[_]]

    Attributes
    protected
    Definition Classes
    RepCheck
  8. def checkrep (): Unit

    Assert invariants.

    Assert invariants.

    Attributes
    protected final
    Definition Classes
    RepCheck
  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 getTopicTermDistribution (topic: String): Array[Double]

    Returns the distribution over terms for the given topic.

    Returns the distribution over terms for the given topic. The return value of this method is assumed to have already incorporated the corresponding getTermSmoothing to the appropriate extent.

    Attributes
    final
    Definition Classes
    ClosedTopicSet
  15. def getTopicTermDistribution (topic: Int): Array[Double]

    Returns the distribution over terms for the given topic.

    Returns the distribution over terms for the given topic. The return value of this method is assumed to have already incorporated the corresponding getTermSmoothing to the appropriate extent.

    Definition Classes
    ClosedTopicSet
  16. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  17. def infer (doc: String, labels: Array[String]): SparseArray[Double]

    Does inference on the given document until convergence.

  18. def infer (doc: PLDADocumentParams): SparseArray[Double]

    Does inference on the given document until convergence.

  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. def labelTopicIndex (label: Int, topic: Int): Int

    Returns the topic number for the given topic within the given label.

  21. val labelTopicOffset : Array[Int]

    Starting offset within the topic array for topics with the given label.

    Starting offset within the topic array for topics with the given label.

    Attributes
    protected
  22. val log : (String) ⇒ Unit

    Where log messages go.

    Where log messages go. Defaults to System.err.println.

    Definition Classes
    TopicModel
  23. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  26. val numTerms : Int

    The number of terms in the model.

    The number of terms in the model.

    Definition Classes
    PLDATopicModel
  27. val numTopics : Int

    The number of topics in the model.

    The number of topics in the model.

    Definition Classes
    PLDAClosedTopicSet
  28. def pTopicTerm (topic: String, term: String): Double

    Returns the probability of the given term in the given topic.

    Returns the probability of the given term in the given topic.

    Definition Classes
    ClosedTopicSet
  29. def registerCheck (check: Function0[_]): Unit

    Registers a function as a checker of invariants.

    Registers a function as a checker of invariants.

    Attributes
    protected
    Definition Classes
    RepCheck
  30. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  31. def termIndex : Option[Index[String]]

    The term index describing which terms are in the model.

    The term index describing which terms are in the model.

    Attributes
    final
    Definition Classes
    TopicModel
  32. def termIndex_= (index: Option[Index[String]]): Unit

    Attributes
    protected final
    Definition Classes
    TopicModel
  33. def termSmoothDenom : Double

    Attributes
    protected
    Definition Classes
    DirichletTermSmoothing
  34. def termSmoothing : Array[Double]

    Add-k prior counts for each term (eta in the model formulation).

    Add-k prior counts for each term (eta in the model formulation).

    Attributes
    final
    Definition Classes
    DirichletTermSmoothing
  35. def termSmoothing_= (smoothing: Array[Double]): Unit

    Attributes
    protected
    Definition Classes
    DirichletTermSmoothing
  36. def toString (): String

    Definition Classes
    AnyRef → Any
  37. def tokenize (document: String): Iterable[Int]

    Tokenizes the given input string using our stored tokenizer and term index, if available.

    Tokenizes the given input string using our stored tokenizer and term index, if available. Otherwise, throws an IllegalArgumentException.

    Attributes
    protected
    Definition Classes
    TopicModel
  38. def tokenizer : Option[Tokenizer]

    The tokenizer used to break input documents into terms.

    The tokenizer used to break input documents into terms.

    Attributes
    final
    Definition Classes
    TopicModel
  39. def tokenizer_= (tokenizer: Option[Tokenizer]): Unit

    Attributes
    protected final
    Definition Classes
    TopicModel
  40. var topicIndex : Option[Index[String]]

    The term index describing which terms are in the model.

    The term index describing which terms are in the model.

    Definition Classes
    ClosedTopicSet
  41. def topicName (topic: Int): String

    Gets the name for this topic.

    Gets the name for this topic.

    Definition Classes
    ClosedTopicSet
  42. def topicSmoothing : Array[Double]

    Prior counts for each topic (alpha in the model formulation).

    Prior counts for each topic (alpha in the model formulation).

    Attributes
    final
    Definition Classes
    DirichletTopicSmoothing
  43. def topicSmoothing_= (smoothing: Array[Double]): Unit

    Attributes
    protected
    Definition Classes
    DirichletTopicSmoothing
  44. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from DirichletTopicSmoothing

Inherited from DirichletTermSmoothing

Inherited from ClosedTopicSet

Inherited from TopicModel[PLDAModelParams, ModelState, LabeledLDADocumentParams, Doc, DocState]

Inherited from RepCheck

Inherited from Stateful[ModelState]

Inherited from AnyRef

Inherited from Any