Class: SClust::LDA::Topic
- Inherits:
-
Object
- Object
- SClust::LDA::Topic
- Defined in:
- lib/sclust/lda/lda.rb
Instance Attribute Summary collapse
-
#docs ⇒ Object
Returns the value of attribute docs.
-
#wordcount ⇒ Object
Returns the value of attribute wordcount.
-
#words ⇒ Object
Returns the value of attribute words.
Instance Method Summary collapse
-
#initialize ⇒ Topic
constructor
A new instance of Topic.
Constructor Details
#initialize ⇒ Topic
Returns a new instance of Topic.
36 37 38 39 40 |
# File 'lib/sclust/lda/lda.rb', line 36 def initialize() @words = {} @wordcount = 0 @docs = {} end |
Instance Attribute Details
#docs ⇒ Object
Returns the value of attribute docs.
33 34 35 |
# File 'lib/sclust/lda/lda.rb', line 33 def docs @docs end |
#wordcount ⇒ Object
Returns the value of attribute wordcount.
33 34 35 |
# File 'lib/sclust/lda/lda.rb', line 33 def wordcount @wordcount end |
#words ⇒ Object
Returns the value of attribute words.
33 34 35 |
# File 'lib/sclust/lda/lda.rb', line 33 def words @words end |