mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 04:11:08 -05:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user