dotnet / dotnet/machinelearning-modelbuilder

Question Answering: The error message is not very clear after changing the "context" column's Data type to "Boolean" or "Int".

Open
#2,800 4 comments 0 reactions 0 assignees View on GitHub
Priority:2 Reported by: Test
Dominant language
Dockerfile
Stars
285
Forks
66
PR merge metrics
No merged PRs in 30d

Description

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

**Describe the bug**
- On which step of the process did you run into an issue:
The error message is not very clear after changing the "context" column's Data type to "Boolean" or "Int".

**TestMatrix**
[Smallsuad.tsv.txt](https://github.com/dotnet/machinelearning-modelbuilder/files/13611600/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, column.
6. Changing the "context" column's Data type to "Boolean" or "Int".
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/99375895/3b158309-7422-428a-a69f-caa537841163)
7. On the Train page. click "Start training".
8. Check the error message.

**Expected behavior**
The error message should be like "**Schema mismatch for Context column 'context': expected String, got Boolean/Int**".

**Screenshot**
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/99375895/440cfc21-90de-46c4-9afa-3e7be815ecca)

**Additional context**
The bug is also repro after changing the "**answer_start**" column's Data type to "Boolean".
The error message should be like "**Don't know how to convert answer_start into Int32**".
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/99375895/eea3730e-471e-493b-b38a-fc1b38bf90ba)
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/99375895/c6a61b1a-291c-4395-a484-2a10864f936f)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.