Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to pass LUIS prediction options into Recognizer.recognize method #989

Merged
merged 5 commits into from
Jun 18, 2019

Conversation

jspruance
Copy link

Fixes #964

Description

Add ability for Recognizer.recognize method to accept user-defined luis prediction options and use the properties present in that particular request, defaulting to the options set by the class constructor otherwise.

Specific Changes

  1. botbuilder-js\libraries\botbuilder-ai\src\luisRecognizer.ts
    -- Added additional parameter to 'recognize' method to accept user-defined luis prediction options.
    -- Added private method 'setLuisPredictionOptions' to merge the user-defined and default options objects (and to make it testable).

Testing

Tests added to:
libraries/botbuilder-ai/tests/luisRecognizer.test.js

@jspruance
Copy link
Author

Merge in latest from master.

@jspruance jspruance changed the title Add unit tests for user luis prediction options Add ability to pass LUIS prediction options into Recognizer.recognize method Jun 14, 2019
@jspruance jspruance requested a review from cleemullins June 14, 2019 01:11
@cleemullins cleemullins merged commit d714487 into master Jun 18, 2019
@cleemullins cleemullins deleted the 964-pass-luis-options-to-recognize-async branch June 18, 2019 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add overrides to LuisRecognizer.RecognizeAsync that take luis LuisPredictionOptions
3 participants