Class: Forematter::Commands::Suggest

Inherits:
Forematter::CommandRunner show all
Defined in:
lib/forematter/commands/suggest.rb

Instance Method Summary collapse

Methods inherited from Forematter::CommandRunner

#call

Instance Method Details

#runObject



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/forematter/commands/suggest.rb', line 13

def run
  load_classifier

  # Seed LSI index
  files_with(field).each { |file| seed_index(file) }

  # This takes days:
  puts 'Building index... eesh'
  lsi.build_index
  puts "And we're done!"

  files.each { |file| get_recs(file) }
end