File tree Expand file tree Collapse file tree
services/language_translation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,21 +123,21 @@ module.exports = function (RED) {
123123 case 'forcedglossary' :
124124 params = {
125125 name : msg . filename . replace ( / [ ^ 0 - 9 a - z ] / gi, '' ) ,
126- base_model_id : model_id ,
126+ base_model_id : '' + model_id + '' ,
127127 forced_glossary : fs . createReadStream ( info . path )
128128 } ;
129129 break ;
130130 case 'parallelcorpus' :
131131 params = {
132132 name : msg . filename . replace ( / [ ^ 0 - 9 a - z ] / gi, '' ) ,
133- base_model_id : model_id ,
133+ base_model_id : '' + model_id + '' ,
134134 parallel_corpus : fs . createReadStream ( info . path )
135135 } ;
136136 break ;
137137 case 'monolingualcorpus' :
138138 params = {
139139 name : msg . filename . replace ( / [ ^ 0 - 9 a - z ] / gi, '' ) ,
140- base_model_id : model_id ,
140+ base_model_id : '' + model_id + '' ,
141141 monolingual_corpus : fs . createReadStream ( info . path )
142142 } ;
143143 break ;
You can’t perform that action at this time.
0 commit comments