Skip to content
Snippets Groups Projects
Commit ca5961d2 authored by Matheus Faria's avatar Matheus Faria
Browse files

Moving training data to external folder

parent 08310ae3
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@ services:
- ROCKETCHAT_PASSWORD=botnatpass
volumes:
- ./scripts:/home/hubotnat/bot/scripts
- ./training_data:/home/hubotnat/bot/training_data
depends_on:
- rocketchat
ports:
......
......@@ -6,10 +6,10 @@ chatbot = require path.join __dirname, 'bot', 'index.coffee'
hubotPath = module.parent.filename
hubotPath = path.dirname hubotPath for [1..4]
corpus = (process.env.HUBOT_CORPUS || 'corpus.yml')
console.log(corpus)
configPath = path.join hubotPath, 'scripts', 'config', corpus
configPath = path.join hubotPath, 'training_data', corpus
try
console.log("Loading corpus: " + configPath)
config = yaml.safeLoad fs.readFileSync configPath, 'utf8'
catch err
console.error "An error occurred while trying to load bot's config."
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment