dotnet / dotnet/machinelearning-modelbuilder

Selecting empty csv file throws an Exception

Đang mở
#2,955 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
GS Tutorial
Ngôn ngữ chính
Dockerfile
Star
285
Fork
66
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**System Information (please complete the following information):**
- (No idea where I can get Model builder version)
- Visual studio version is 17.11.0 Preview 7.0

**Describe the bug**
When I select Question Answer template, and then select empty file it throws an Exception

**To Reproduce**
Steps to reproduce the behavior:
Create Machine learning model
Select a Question Answering template (Local)
Press next step
Browse
Select an empty csv file

**Expected behavior**
I would expect some message that the file is empty.

**Error**
Unable to parse file. Only comma, tab or semi-colon delimited files are allowed.

at StreamJsonRpc.JsonRpc.d__154`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.Actions.DataTextActions.d__14.MoveNext() in /_/src/Microsoft.ML.ModelBuilder/Actions/DataTextActions.cs:line 284
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.Actions.DataTextActions.d__2.MoveNext() in /_/src/Microsoft.ML.ModelBuilder/Actions/DataTextActions.cs:line 61
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.ToolWindows.DataTextViewModel.d__136.MoveNext() in /_/src/Microsoft.ML.ModelBuilder/ViewModels/DataTextViewModel.cs:line 683
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.ToolWindows.TextDataControl.<b__3_0>d.MoveNext() in /_/src/Microsoft.ML.ModelBuilder/ToolWindows/DataTabComponents/TextDataControl.xaml.cs:line 69

**Screenshots**
![image](https://github.com/user-attachments/assets/bc9bdfb6-9dc4-4ae9-9ed4-a8c950bc5715)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu với Microsoft.ML.ModelBuilder/Actions/DataTextActions.cs quanh dòng 284 và theo dõi lệnh gọi đến ViewModels/DataTextViewModel.cs quanh dòng 683. Tái hiện luồng template Question Answering với một CSV rỗng, sau đó xác minh rằng hệ thống báo tệp rỗng thay vì phát sinh ngoại lệ dấu phân cách.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp, machine-learning
Lĩnh vực
desktop-dev, machine-learning
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.