@telefonica/luis-cli
v5.5.0
Published
CLI for Microsoft LUIS API
Downloads
39
Readme
Luis Command-line Interface
Simple command-line interface to interact with Microsoft LUIS APIs.
Install
$ npm install -g @telefonica/luis-cli
Usage
This CLI uses the LUIS API to automate the following tasks:
- update an existing LUIS app with the model of a local json file.
- export an existing LUIS app to the specified local json file.
Notes:
- This tool assumes the use of "native LUIS app json files", the ones you get when you export an app.
- When updating, it update utterances, intents, entities and phrase lists, creating the new ones and deleting the ones no longer used. It also train an publish the app.
Type ./bin/luis-cli -h
to get more info about the available commands and general options.
To know more about one command, type ./bin/luis-cli <command> -h
.
For example: to update, to train and to publish a concrete LUIS application version based on a new LUIS model:
./bin/luis-cli update -s aac4012305e94ffebe2fa8408954aab3 -a b073cd3d-3b86-4367-813a-638840c83e3c -m ./training_model.json -v 0.3 -r westus -t false
Or to test a model:
./bin/luis-cli test -s aac4012305e94ffebe2fa8408954aab3 -a b073cd3d-3b86-4367-813a-638840c83e3c -m ./training_model.json -f ./errors.json -q 3
For additional information about LUIS training models, please visit: https://github.com/Telefonica/language-model-converter
LICENSE
Copyright 2017 Telefónica I+D
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.