Lengthy README
This commit is contained in:
parent
5c6004f694
commit
e8a822668f
2 changed files with 101 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue