Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

update_cognitive_models.ps1 misbehave when Machine learning features are added #900

@GitDruid

Description

@GitDruid

What project is affected?

Skill template

What language is this in?

C#

What happens?

When a Machine learning feature is added to an intent on the LUIS authoring page, the execution of update_cognitive_models.ps1 (RemoteToLocal=true) does not generate the xxxLuis.cs file.
The cli tool ends with a successfull "> Update complete." message, no warning is presented.
Just the log file (update_cognitive_models_log.txt) reports the error:

AZ CLI passes minimum version. Current version is 2.8.0
[ERROR] line 19:0 - line 19:57: Features must be defined before assigned to an intent. No definition found for feature ""Application synonyms"" in usesFeature definition for intent "Application"
Invalid LUIS JSON file content.

What are the steps to reproduce this issue?

  1. Create an empty Skill from the template.
  2. Add a new intent on LUIS authoring for that skill.
  3. Add a "Machine learning feature" to that intent.
  4. Train and publish.
  5. Execute update_cognitive_models.ps1 (RemoteToLocal=true)

What were you expecting to happen?

See in my project the xxxLuis.cs file updated with the new intent.

Can you share any logs, error output, etc.?

The json file is as follows (it seems a matter of order of the intent and feature definition in the json):

MySkill.json

{
  "name": "myskillen-us_MySkill",
  "versionId": "0.1",
  "desc": "",
  "culture": "en-us",
  "intents": [
    {
      "name": "Application",
      "features": [
        {
          "featureName": "Application synonyms",
          "isRequired": false
        }
      ]
    },
    {
      "name": "None",
      "features": []
    },
    {
      "name": "Sample",
      "features": []
    }
  ],
  "entities": [],
  "closedLists": [],
  "composites": [],
  "hierarchicals": [],
  "patternAnyEntities": [],
  "regexEntities": [],
  "prebuiltEntities": [],
  "regexFeatures": [],
  "phraselists": [
    {
      "activated": true,
      "name": "Application synonyms",
      "words": "Application,Web pages,Sites",
      "mode": true,
      "enabledForAllModels": false
    }
  ],
  "patterns": [],
  "utterances": [
    {
      "text": "demo dialog",
      "intent": "Sample",
      "entities": []
    },
    {
      "text": "goodbye",
      "intent": "None",
      "entities": []
    },
    {
      "text": "hello",
      "intent": "None",
      "entities": []
    },
    {
      "text": "hi",
      "intent": "None",
      "entities": []
    },
    {
      "text": "list the applications i'm allowed to",
      "intent": "Application",
      "entities": []
    },
    {
      "text": "logout",
      "intent": "None",
      "entities": []
    },
    {
      "text": "may you list me my applications?",
      "intent": "Application",
      "entities": []
    },
    {
      "text": "run dialog",
      "intent": "Sample",
      "entities": []
    },
    {
      "text": "run sample dialog",
      "intent": "Sample",
      "entities": []
    },
    {
      "text": "sample dialog",
      "intent": "Sample",
      "entities": []
    },
    {
      "text": "test dialog",
      "intent": "Sample",
      "entities": []
    },
    {
      "text": "to what application i've access?",
      "intent": "Application",
      "entities": []
    },
    {
      "text": "what are my applications?",
      "intent": "Application",
      "entities": []
    }
  ],
  "luis_schema_version": "7.0.0",
  "tokenizerVersion": "1.0.0",
  "settings": []
}

Any screenshots or additional context?

No.

Metadata

Metadata

Assignees

Labels

Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.R10Release 10 - August 17th, 2020customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.lunon luis api commands

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions