mirror of
https://github.com/thewesker/twitter_ebooks.git
synced 2025-12-20 12:21:11 -05:00
@@ -93,7 +93,9 @@ STR
|
|||||||
filename = File.basename(path)
|
filename = File.basename(path)
|
||||||
shortname = filename.split('.')[0..-2].join('.')
|
shortname = filename.split('.')[0..-2].join('.')
|
||||||
|
|
||||||
|
FileUtils.mkdir_p(File.join(APP_PATH, 'model'))
|
||||||
outpath = File.join(APP_PATH, 'model', "#{shortname}.model")
|
outpath = File.join(APP_PATH, 'model', "#{shortname}.model")
|
||||||
|
|
||||||
Ebooks::Model.consume(path).save(outpath)
|
Ebooks::Model.consume(path).save(outpath)
|
||||||
log "Corpus consumed to #{outpath}"
|
log "Corpus consumed to #{outpath}"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user