Skip to content

Commit

Permalink
Implement Add Words
Browse files Browse the repository at this point in the history
  • Loading branch information
chughts committed Jan 25, 2017
1 parent ad35dc4 commit 0826942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/speech_to_text/v1-corpus-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ module.exports = function (RED) {
switch (method) {
case 'addCorpus':
params.corpus = fs.createReadStream(info.path);
break;
case 'addWords':
try {
params.words = JSON.parse(fs.readFileSync(info.path, 'utf8'));
Expand Down

0 comments on commit 0826942

Please sign in to comment.