microsoft / botframework-cli

CLI Tools for the Microsoft Bot Framework
Other
176 stars 129 forks source link

Failed to parse config.json, error= {} while creating Orchetrator #1350

Closed sw-joelmut closed 7 months ago

sw-joelmut commented 2 years ago

Issue referenced from https://github.com/microsoft/botframework-sdk/issues/6531

Version

@microsoft/botframework-cli/4.15.0 win32-x64 node-v16.15.0

Describe the bug

This bug is faced when trying to create the Orchestrator from the .lu files already defined in LUIS and using the pretrained model obtained from the base model for the Orchestrator

To Reproduce

Steps to reproduce the behavior:

1. bf orchestrator:add -t luis

2. bf orchestrator:basemodel:get --out model

3. bf orchestrator:create --in . --model model --out generated

Failed to parse LUIS or JSON file on intent/entity labels

Failed to parse config.json, error={}

The error seems to be only with the pretrained model as all the files prior to it are processed as per the command line output. There are token recognition errors, but does not stop the process to proceed at point 3. The content in config.json :

{ "VocabFile": "vocab.txt", "ModelFile": "model.onnx", "Name": "pretrained.20200924.microsoft.dte.00.06.en.onnx", "Framework": "onnx", "Publisher": "Microsoft", "ModelType": "dte_bert", "Layers": 6, "EmbedderVersion": 1, "MinRequiredCoreVersion": "1.0.0" }

How can I solve this to poceed to create Orchestrator?