edu.stanford.nlp.tmt.model

TopicModel

trait TopicModel [ModelParams, ModelState, DocParams, Doc <: Stateful[DocState], DocState] extends Stateful[ModelState] with RepCheck

Implementation trait for topic models. Here, we define a topic model to be any model with topics defined to be distributions over words and per-document per-word distributions over topic (in either a training or inference set).

Linear Supertypes
RepCheck, Stateful[ModelState], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. TopicModel
  2. RepCheck
  3. Stateful
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def create (docParams: DocParams): Doc

    Creates a document from the given document parameters.

    Creates a document from the given document parameters.

    Attributes
    abstract
  2. val numTerms : Int

    The number of terms in the model.

    The number of terms in the model.

    Attributes
    abstract
  3. def params : ModelParams

    The parameters used to create this model.

    The parameters used to create this model.

    Attributes
    abstract
  4. def reset (): Unit

    Resets to the default state.

    Resets to the default state.

    Attributes
    abstract
    Definition Classes
    Stateful
  5. def state : ModelState

    Gets the current state of this object.

    Gets the current state of this object.

    Attributes
    abstract
    Definition Classes
    Stateful
  6. 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 hashCode (): Int

    Definition Classes
    AnyRef → Any
  15. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  16. val log : (String) ⇒ Unit

    Where log messages go.

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

  17. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  20. 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
  21. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  22. 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
  23. def termIndex_= (index: Option[Index[String]]): Unit

    Attributes
    protected final
  24. def toString (): String

    Definition Classes
    AnyRef → Any
  25. 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
  26. def tokenizer : Option[Tokenizer]

    The tokenizer used to break input documents into terms.

    The tokenizer used to break input documents into terms.

    Attributes
    final
  27. def tokenizer_= (tokenizer: Option[Tokenizer]): Unit

    Attributes
    protected final
  28. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from RepCheck

Inherited from Stateful[ModelState]

Inherited from AnyRef

Inherited from Any