dotnet / machinelearning-modelbuilder

Simple UI tool to build custom machine learning models.
Creative Commons Attribution 4.0 International
263 stars 56 forks source link

Question Answering: The generated Console App and Web API projects are running failed. #2795

Open v-Hailishi opened 9 months ago

v-Hailishi commented 9 months ago

System Information (please complete the following information): Windows OS: Windows-11-Enterprise-22H2 ML.Net Model Builder 2022: 17.17.0.2360101 (Main Build) Microsoft Visual Studio Enterprise: 2022(17.7.7) .Net: 6.0,7.0

Describe the bug

TestMatrix Smallsuad.tsv.txt

To Reproduce Steps to reproduce the behavior:

  1. Select Create a new project from the Visual Studio start window.
  2. Choose the C# Console App (.NET Core) project template.
  3. Add model builder by right click on the project.
  4. Select "Question Answering" scenario.
  5. On Data page, choose the data source to completed training.
  6. Go to the Consume page, click "Add to solution" button to generate Console App and Web API projects.
  7. Rn the generated Console App and Web API projects

Expected behavior The generated Console App and Web API projects should be running successfully.

Screenshot image image

Additional context

v-Hailishi commented 9 months ago

Verified on the latest main build 17.17.0.2360601, the generated Console App project can be running successfully now. image But the generated Web API project is still running failed. image

zewditu commented 9 months ago

the reason for the fail of Web API is the context text contain non-English character in context("Beyoncé ", "é " is not English character) column and not able to serialize into Json using system. Json

v-Hailishi commented 8 months ago

@zewditu After changing the non-English character to English, the Web API project can be running successfully, but there are 3 predicted answers and there is no obvious separators between the 3 answers. image

zewditu commented 8 months ago

@v-Hailishi thanks for testing it . yes you are right it needs formatting to separate the 3 answers or jus single answer with the highest score. One more , it seems that the issue is specific to test the webapp in PowerShell command. I test it with Postman https://www.postman.com/downloads/ it works fine. image