dotnet / dotnet/machinelearning-modelbuilder

Selecting empty csv file throws an Exception

未关闭
#2,955 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

GS Tutorial
主要语言
Dockerfile
星标
285
派生
66
PR 合并指标
30 天内没有已合并 PR

描述

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.<<BrowseFileButton_Click>b__3_0>d.MoveNext() in /
/src/Microsoft.ML.ModelBuilder/ToolWindows/DataTabComponents/TextDataControl.xaml.cs:line 69

Screenshots
image

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 Microsoft.ML.ModelBuilder/Actions/DataTextActions.cs 第284行附近开始,并跟踪调用到 ViewModels/DataTextViewModel.cs 第683行附近。使用空 CSV 重现 Question Answering 模板流程,然后验证它报告文件为空,而不是出现分隔符异常。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp, machine-learning
领域
desktop-dev, machine-learning
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。