diff --git a/tool/assistant.ts b/tool/assistant.ts index c60e50d93..5ae16f7dd 100644 --- a/tool/assistant.ts +++ b/tool/assistant.ts @@ -262,14 +262,14 @@ export function initArgparse(subparsers : argparse.SubParser) { export async function execute(args : any) { if (!args.thingpedia_url) args.thingpedia_url = await getConfig('thingpedia.url', process.env.THINGPEDIA_URL || DEFAULT_THINGPEDIA_URL); - if (!args.nlu_server) - args.nlu_server = await getConfig('thingpedia.nlp-url', DEFAULT_NLP_URL); + if (!args.nlu_server_url) + args.nlu_server_url = await getConfig('thingpedia.nlp-url', DEFAULT_NLP_URL); const platform = new Platform(args.workdir, args.locale, args.thingpedia_url); const prefs = platform.getSharedPreferences(); if (args.thingpedia_dir && args.thingpedia_dir.length) prefs.set('developer-dir', args.thingpedia_dir); - prefs.set('experimental-use-neural-nlg', !!args.nlg_server); + prefs.set('experimental-use-neural-nlg', !!args.nlg_server_url); const engine = new Engine(platform); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); @@ -277,8 +277,8 @@ export async function execute(args : any) { await engine.open(); const conversation = await engine.assistant.getOrOpenConversation('main', { - nluServerUrl: args.nlu_server, - nlgServerUrl: args.nlg_server, + nluServerUrl: args.nlu_server_url, + nlgServerUrl: args.nlg_server_url, debug: args.debug, showWelcome: true }); diff --git a/tool/auto-annotate-multiwoz.ts b/tool/auto-annotate-multiwoz.ts index 67d2a52fb..6d8925439 100644 --- a/tool/auto-annotate-multiwoz.ts +++ b/tool/auto-annotate-multiwoz.ts @@ -233,8 +233,8 @@ interface ConverterOptions { timezone : string; thingpedia : string; database_file : string; - user_nlu_server : string; - agent_nlu_server : string; + user_nlu_server_url : string; + agent_nlu_server_url : string; only_multidomain : boolean; use_existing : boolean; max_turn : number|undefined; @@ -283,8 +283,8 @@ class Converter extends stream.Readable { this._onlyMultidomain = args.only_multidomain; this._tpClient = new Tp.FileClient(args); this._schemas = new SchemaRetriever(this._tpClient, null, true); - this._userParser = ParserClient.get(args.user_nlu_server, 'en-US'); - this._agentParser = ParserClient.get(args.agent_nlu_server, 'en-US'); + this._userParser = ParserClient.get(args.user_nlu_server_url, 'en-US'); + this._agentParser = ParserClient.get(args.agent_nlu_server_url, 'en-US'); this._useExisting = args.use_existing; this._maxTurn = args.max_turn; this._timezone = args.timezone; diff --git a/tool/requote.js b/tool/requote.js index 50ce23ad6..32087db07 100644 --- a/tool/requote.js +++ b/tool/requote.js @@ -516,6 +516,7 @@ export async function execute(args) { console.error('**************'); console.error('Failed to requote'); console.error(String(e)); + console.error(ex.id); console.error(ex.preprocessed); console.error(ex.target_code); console.error('**************');