Lengthy README

This commit is contained in:
Mispy 2013-11-27 06:55:14 -08:00
parent 5c6004f694
commit e8a822668f
2 changed files with 101 additions and 3 deletions

View file

@ -38,10 +38,9 @@ module Ebooks
shortname = filename.split('.')[0..-2].join('.')
hash = Digest::MD5.hexdigest(File.read(path))
log "Consuming text corpus: #{filename}"
outpath = File.join(APP_PATH, 'model', "#{shortname}.model")
Model.consume(path).save(outpath)
log "Corpus consumed"
log "Corpus consumed to #{outpath}"
end
end