FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix import filtered intents not work in luis:cross-train by cosmicshuai · Pull Request #1232 · microsoft/botframework-cli · GitHub

This repository was archived by the owner on Jan 15, 2025. It is now read-only.
/ botframework-cli Public archive

fix import filtered intents not work in luis:cross-train - #1232

Merged
Emilio Munoz (munozemilio) merged 14 commits into
mainfrom
shuwan/fixFilterIntent
Jun 3, 2021
Merged

fix import filtered intents not work in luis:cross-train#1232
Emilio Munoz (munozemilio) merged 14 commits into
mainfrom
shuwan/fixFilterIntent

Conversation

Copy link
Copy Markdown
Contributor

closes: #1210
In this PR, for the test cases of using imported intents User report case will only includes the referenced intents in the generated files.

Here is the new result of Cross-train for that case above:

> LUIS application information
> !# @app.versionId = 0.1
> !# @app.culture = en-us
> !# @app.luis_schema_version = 3.2.0


> # Intent definitions

# InternalIntent
- Intent within application.lu


# ExternalIntentShouldBeIncluded
- Intent which should be included


> # Entity definitions


> # PREBUILT Entity definitions


> # Phrase list definitions


> # List entities

> # RegEx entities

Shuai Wang (cosmicshuai) marked this pull request as ready for review May 12, 2021 05:40

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Small comment on code optimization


const matchedUtterence = luObj.utterances.find(e => e.intent === intent)
const fileContent = `# ${intent}\r\n${parseUtterancesToLu([matchedUtterence], luObj)}`
let cloned = {...(isAbsolutePath ? importFile : filePathOrFound[0])}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

const, also does this need to be a deep clone?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The reason I used a deep clone here is due to I don't want to change the original content of luis and qna files.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This isn't a deep clone actually, that was my question. See Typescript playground for explanataion.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I see. I just fixed this.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bf luis:cross-train not working as expected when using external file references which use intent filter

3 participants


Back | FazBrowse Home | New Git URL