parent
8a67a69649
commit
05f47d4bd0
1 changed files with 5 additions and 3 deletions
|
@ -93,7 +93,9 @@ STR
|
|||
filename = File.basename(path)
|
||||
shortname = filename.split('.')[0..-2].join('.')
|
||||
|
||||
FileUtils.mkdir_p(File.join(APP_PATH, 'model'))
|
||||
outpath = File.join(APP_PATH, 'model', "#{shortname}.model")
|
||||
|
||||
Ebooks::Model.consume(path).save(outpath)
|
||||
log "Corpus consumed to #{outpath}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue