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

fix: Bug in orchestratorRecognizer.ts InitializeModel #3842

Merged
merged 2 commits into from
Jul 2, 2021

Conversation

tsuwandy
Copy link
Contributor

@tsuwandy tsuwandy commented Jul 2, 2021

Fixes #3841

fixed bug in initializemodel
@tsuwandy tsuwandy requested a review from a team as a code owner July 2, 2021 00:53
@tsuwandy tsuwandy changed the title Fix: Bug in orchestratorRecognizer.ts InitializeModel fix: Bug in orchestratorRecognizer.ts InitializeModel Jul 2, 2021
Copy link
Contributor

@hcyang hcyang left a comment

Choose a reason for hiding this comment

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

        if (this.scoreEntities) {
            if (!orchestrator.load(fullModelFolder, entityModelFolder)) {
                throw new Error(
                    `Model load failed - model folder ${fullModelFolder}, entity model folder ${entityModelFolder}.`
                    );
            }
        } else {
            if (!orchestrator.load(fullModelFolder)) {
                throw new Error(`Model load failed - model folder ${fullModelFolder}.`);
            }
        }

if load with entity model fail, the no need to fall back to intent only
@coveralls
Copy link

coveralls commented Jul 2, 2021

Pull Request Test Coverage Report for Build 992050406

  • 0 of 5 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.005%) to 84.329%

Changes Missing Coverage Covered Lines Changed/Added Lines %
libraries/botbuilder-ai-orchestrator/src/orchestratorRecognizer.ts 0 5 0.0%
Totals Coverage Status
Change from base Build 987673955: -0.005%
Covered Lines: 19629
Relevant Lines: 22079

💛 - Coveralls

);
} else if (!orchestrator.load(fullModelFolder)) {
throw new Error(`Model load failed - model folder ${fullModelFolder}.`);
if (this.scoreEntities) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a test for this?

@tsuwandy tsuwandy merged commit e9769e2 into main Jul 2, 2021
@tsuwandy tsuwandy deleted the tiens-ocrecognizer branch July 2, 2021 02:29
joshgummersall pushed a commit that referenced this pull request Jul 2, 2021
* Update orchestratorRecognizer.ts

fixed bug in initializemodel

* Update orchestratorRecognizer.ts

if load with entity model fail, the no need to fall back to intent only
joshgummersall pushed a commit that referenced this pull request Jul 2, 2021
* fix: Bug in orchestratorRecognizer.ts InitializeModel (#3842)

* Update orchestratorRecognizer.ts

fixed bug in initializemodel

* Update orchestratorRecognizer.ts

if load with entity model fail, the no need to fall back to intent only

* port: runtime docs (#3838)

* port: runtime docs

Fixes #3809

Also adds some types to ServiceCollection calls

* spellcheck!

Co-authored-by: Michael Richardson <[email protected]>

Co-authored-by: Michael Richardson <[email protected]>

Co-authored-by: Tien Suwandy <[email protected]>
Co-authored-by: Michael Richardson <[email protected]>
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.

When entity model is available, OrchestratorRecognizer failed to load it
4 participants