@@ -62,7 +62,7 @@ module.exports = function (RED) {
6262 }
6363
6464 function executeListCustomisations ( node , stt , params , msg ) {
65- stt . getCustomizations ( params , function ( err , response ) {
65+ stt . listLanguageModels ( params , function ( err , response ) {
6666 node . status ( { } ) ;
6767 if ( err ) {
6868 payloadutils . reportError ( node , msg , err ) ;
@@ -75,7 +75,7 @@ module.exports = function (RED) {
7575 }
7676
7777 function executeGetCustomisation ( node , stt , params , msg ) {
78- stt . getCustomization ( params , function ( err , response ) {
78+ stt . getLanguageModel ( params , function ( err , response ) {
7979 node . status ( { } ) ;
8080 if ( err ) {
8181 payloadutils . reportError ( node , msg , err ) ;
@@ -87,7 +87,7 @@ module.exports = function (RED) {
8787 }
8888
8989 function executeDeleteCustomisation ( node , stt , params , msg ) {
90- stt . deleteCustomization ( params , function ( err , response ) {
90+ stt . deleteLanguageModel ( params , function ( err , response ) {
9191 node . status ( { } ) ;
9292 if ( err ) {
9393 payloadutils . reportError ( node , msg , err ) ;
@@ -112,7 +112,7 @@ module.exports = function (RED) {
112112 }
113113
114114 function executeGetCorpora ( node , stt , params , msg ) {
115- stt . getCorpora ( params , function ( err , response ) {
115+ stt . listCorpora ( params , function ( err , response ) {
116116 node . status ( { } ) ;
117117 if ( err ) {
118118 payloadutils . reportError ( node , msg , err ) ;
@@ -124,7 +124,7 @@ module.exports = function (RED) {
124124 }
125125
126126 function executeTrain ( node , stt , params , msg ) {
127- stt . trainCustomization ( params , function ( err , response ) {
127+ stt . trainLanguageModel ( params , function ( err , response ) {
128128 node . status ( { } ) ;
129129 if ( err ) {
130130 payloadutils . reportError ( node , msg , err ) ;
@@ -136,7 +136,7 @@ module.exports = function (RED) {
136136 }
137137
138138 function executeGetCustomWords ( node , stt , params , msg ) {
139- stt . getWords ( params , function ( err , response ) {
139+ stt . listWords ( params , function ( err , response ) {
140140 node . status ( { } ) ;
141141 if ( err ) {
142142 payloadutils . reportError ( node , msg , err ) ;
@@ -373,7 +373,7 @@ module.exports = function (RED) {
373373 }
374374 } ) ;
375375
376- stt . getModels ( { } , function ( err , models ) {
376+ stt . listModels ( { } , function ( err , models ) {
377377 if ( err ) {
378378 res . json ( err ) ;
379379 } else {
0 commit comments