Sha256: 66fc68657d06219fafda7425afc5ac6c696ad054e29ddd6584b9e31ba0b4c2ee

Contents?: true

Size: 502 Bytes

Versions: 4

Compression:

Stored size: 502 Bytes

Contents

require 'rubygems'
require 'shoulda'
require 'yaml'
require 'lda-ruby'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

class Test::Unit::TestCase

  @filename = File.join(File.dirname(__FILE__), 'data', 'wiki-test-docs.yml')
  @filedocs = YAML::load_file(@filename)
  @corpus = Lda::TextCorpus.new(@filename)

  @lda = Lda::Lda.new(@corpus)

  @lda.verbose = false
  @lda.num_topics = 20
  @lda.em('random')
  @lda.print_topics(20)


end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lda-ruby-0.3.9 test/simple_yaml.rb
lda-ruby-0.3.8 test/simple_yaml.rb
lda-ruby-0.3.7 test/simple_yaml.rb
lda-ruby-0.3.6 test/simple_yaml.rb