Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Comments

Close side panel

Adding mode flag to train command#1113

Merged
munozemilio merged 3 commits intomainmicrosoft/botframework-cli:mainfrom
emimunoz/luis-train-modemicrosoft/botframework-cli:emimunoz/luis-train-modeCopy head branch name to clipboard
Feb 10, 2021
Merged

Adding mode flag to train command#1113
munozemilio merged 3 commits intomainmicrosoft/botframework-cli:mainfrom
emimunoz/luis-train-modemicrosoft/botframework-cli:emimunoz/luis-train-modeCopy head branch name to clipboard

Conversation

@munozemilio
Copy link
Contributor

Fixes #1087

Copy link
Contributor

@joshgummersall joshgummersall left a comment

Choose a reason for hiding this comment

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

One suggestion, one question. LGTM though.

packages/luis/src/api/http-request.ts Outdated Show resolved Hide resolved

try {
const trainingRequestStatus = await Train.train({subscriptionKey, endpoint, appId}, versionId)
const trainingRequestStatus = await Train.train({subscriptionKey, endpoint, appId}, versionId, flags.mode)
Copy link
Contributor

Choose a reason for hiding this comment

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

Are string flags defaulted to ''?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to undefined

Copy link
Contributor

Choose a reason for hiding this comment

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

It's pedantic, but if undefined is a valid type for the mode parameter, the train function signature should be (..., mode?: string). strict mode would raise an error here.

@munozemilio munozemilio merged commit d80ed6a into main Feb 10, 2021
@munozemilio munozemilio deleted the emimunoz/luis-train-mode branch February 10, 2021 19:37
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.

Add a flag to trigger alternate training mode to BF LUIS:Train

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.