Skip to content

Commit a017c33

Browse files
committed
fix5
1 parent 5c29bae commit a017c33

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • services/language_translation

services/language_translation/v2.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,26 +118,25 @@ module.exports = function (RED) {
118118
if (!err) {
119119
fs.write(info.fd, msg.payload);
120120
var params = {};
121-
console.log('filetype', filetype);
122121
switch (filetype) {
123122
case 'forcedglossary':
124123
params = {
125124
name: msg.filename.replace(/[^0-9a-z]/gi, ''),
126-
base_model_id: '' + model_id + '',
125+
base_model_id: 'es-en',
127126
forced_glossary: fs.createReadStream(info.path)
128127
};
129128
break;
130129
case 'parallelcorpus':
131130
params = {
132131
name: msg.filename.replace(/[^0-9a-z]/gi, ''),
133-
base_model_id: '' + model_id + '',
132+
base_model_id: model_id,
134133
parallel_corpus: fs.createReadStream(info.path)
135134
};
136135
break;
137136
case 'monolingualcorpus':
138137
params = {
139138
name: msg.filename.replace(/[^0-9a-z]/gi, ''),
140-
base_model_id: '' + model_id + '',
139+
base_model_id: model_id,
141140
monolingual_corpus: fs.createReadStream(info.path)
142141
};
143142
break;
@@ -308,7 +307,6 @@ module.exports = function (RED) {
308307
model_id = srclang + '-' + destlang + '-' + domain;
309308
}
310309

311-
console.log('model id ', model_id);
312310
switch (action) {
313311
case 'translate':
314312
this.doTranslate(msg, model_id);

0 commit comments

Comments
 (0)