Class: SClust::LDA::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/sclust/lda/lda.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTopic

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

#docsObject

Returns the value of attribute docs.



33
34
35
# File 'lib/sclust/lda/lda.rb', line 33

def docs
  @docs
end

#wordcountObject

Returns the value of attribute wordcount.



33
34
35
# File 'lib/sclust/lda/lda.rb', line 33

def wordcount
  @wordcount
end

#wordsObject

Returns the value of attribute words.



33
34
35
# File 'lib/sclust/lda/lda.rb', line 33

def words
  @words
end