本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
在 Test Workbench 中查看测试验证错误
您可以对报告验证错误的测试集进行更正。如果测试集尚未准备好进行测试,就会生成这些验证错误。Test Workbench 可以显示测试集输入 CSV 文件中哪些必填列不存在预期格式的值。
要查看测试验证错误,请执行以下操作:
-
在测试集列表中选择要查看的报告状态为验证错误的测试集的名称。测试集的名称是有效链接,点击该链接可跳转至相关页面以查看有关测试集的详细信息。
-
测试集记录在屏幕顶部显示验证错误的详细信息。选择查看详细信息以查看验证错误报告。
-
在错误报告窗口中,依据行号和错误类型来确定发生错误的位置。对于一长串错误,您可以选择下载错误报告。
-
将测试集输入 CSV 文件中列出的错误与原始测试文件进行比较,以更正所有问题并重新上传测试集。
下表列出了输入 CSV 验证错误消息及对应场景。
| 场景 | 错误消息 | 注意 |
|---|---|---|
|
超出测试集文件大小限制 |
测试集文件大于 200 MB. Provide smaller file and try your request again. |
|
测试集超过最大记录数 |
Input file had records more than supported maximum number of 200,000. |
|
上传的测试集为空 |
Imported test set is empty. Provide non-empty test set and try your request again. |
|
| 列标题名称为空 | Column Headers Row: found empty column name in column number 5. | |
| 列标题名称无法识别 | Column Headers Row: could not recognize column name 'dummy' in column number 2. | |
| 列标题名称重复 | Column Headers Row: found multiple columns 'S3 audio link' and 'S3 audio link' that are same or equivalent. Remove or rename one of those columns. | |
| 多值列名超出限制 | Column Headers Row: count of columns for 'Expected Output Slot' exceeded maximum supported count: 6. Remove some columns for 'Expected Output Slot' and try again. | 多值列支持的最大列数为 6。 |
| 文本或音频相关的列标题不存在 | Could not find columns for text or audio conversations. For text conversations, use {'Text input'} columns. For audio conversations, use {'S3 audio link', 'Expected transcription'} columns. | 必填音频列:{'S3 audio link', 'Expected transcription'},必填文本列:{'Text input'} |
| 存在与文本和音频均相关的列标题 | Found columns for both text and audio conversations. You can either use {'Text input'} columns for text conversations, or {'S3 audio link', 'Expected transcription'} columns for audio conversations. | 必填音频列:{'S3 audio link', 'Expected transcription'},必填文本列:{'Text input'} |
| 缺少必填列 | Could not find mandatory columns ["Expected Output Intent"]. | 必填列:{"Line #", "Source", "Expected Output Intent"} |
| 存在有数据但无标题的列 | Found data in column number 8 for row number 6, but corresponding column did not have a column header. | |
| 必填列无数据 | Row=12: no values found for mandatory columns: {"Source", "Expected Output Intent"} | |
| 对话 ID 重复 | conversation number '19' was seen for previous conversation at row number 39." Make sure that same conversation number has not been provided for two conversations, you can do this by ensuring that all rows for a conversation number are grouped together. | |
| 提供的对话 ID 无效 | Found invalid value 'test_conversation' in 'Conversation #' column. 对于用户行,此列的值必须为数字或 N/A (即 “不适用”)。 | |
| 行号列的值为非数字 | Found non-numeric value 'test_line' in 'Line #' column. Its value must be numeric. | |
| 代理行中无会话 ID | No value found for 'Conversation #' column. It must be provided for an agent row. | |
| 代理行中无数值会话 ID | Found non-numeric value 'test_conversation' in 'Conversation #' column. Its value must be numeric for an agent row. | |
| S3 位置无效 | Invalid value 'bucket/folder' was provided. Valid format is S3://<bucketName>/<keyName>. | |
| S3 存储桶名称无效 | Invalid s3 bucket name 'test_bucket' was provided. Check the bucket name. | |
| S3 音频位置为文件夹 | Provided audio location 'S3://bucket/folder' is invalid. It points to an S3 folder. | |
| 意图名称无效 | Invalid characters were present in intent 'intent@name'. Check the intent name. | 正则表达式检查:^([0-9a-zA-Z][_-]?)+$ |
| 槽名称无效 | Invalid characters were present in slot 'Slot@Name'. Check the slot name. | 正则表达式:^([0-9a-zA-Z][_-]?)+$,开头或结尾不得为点(.) |
| 槽位值被赋予父槽位 | Slot values were provided for subslot 'Address.City' as well as parent slot 'Address'. Values should be only provided for the subslot. | CST 中的父槽位不得有槽位值 |
| 上下文名称中的字符无效 | Invalid characters were present in context name 'context@1'. Check the context name. | 正则表达式:^([A-Za-z]_?)+$ |
| 槽位拼写样式无效 | Invalid value 'test' was provided. Make sure that they are all upper case. 有效值为 ["默认”、SpellByLetter “”、SpellByWord “]。 | 支持的值 ["默认”、SpellByLetter “”、“SpellByWord” |
| 参与者或来源必须是代理或用户 | Invalid value 'bot' was provided. Valid values are ["Agent", "User"]. | 支持的枚举:“代理”、“用户” |
| 行号不得为小数 | Invalid value '10.1' was provided. It should be a valid number without any fractions. | |
| 对话编号不得为小数 | Invalid value '10.1' was provided. It should be a valid number without any fractions. | |
| 行号应在限定范围内 | Invalid value '92233720368547758071' was provided. It should be greater than or equal to 1 and less than or equal to 9223372036854775807. | |
| 插入列只能为布尔值 | Invalid value 'test' was provided. It should be a valid boolean value such as 'true' or 'false'. Alternatively 'yes' and 'no' can be used. | 可能的值:“True”、“true”、“T”、“Yes”、“yEs”、“Y”、“1”、“1.0”、“False”、“false”、“F”、“No”、“no”、“N”、“0”、“0.0” |
| 预期槽位、会话属性、请求属性应以等于号(=)隔开 | Value 'slotName:slotValue' does not have '='. Such value should be provided as a key-value pair in format '<key>=<value>'. | 例如:slotName = slotType |
| 预期槽位、会话属性、请求属性应为密钥值对 | '=slotValue' does not have a key before '='. Such value should be provided as a key-value pair in format '<key>=<value>'. | 例如:slotName = slotType |
| 结尾处的引号无效 | 在 'Foo's item'“ 中发现了不正确的引号使用。It starts with quote character `"` but does not end with same quote character. | 例如:`"Foo's item", KFC` |
| 中间的引号无效 | 在 `"Foo's" Burger, etc.` 中发现了不正确的引号使用。It contains quote character `"` inside its content. Values containing single quotes should be wrapped within double quotes and vice-versa. | 例如,正确格式应为:`"Foo's item", KFC` |
| 缺少引号 | `key = Foo's item` 包含单引号或双引号,但未用引号括起来。Values containing single quotes should be wrapped inside double quotes and vice-versa. | |
| 列中多处存在重复密钥 | Key `key1` was repeated in two columns: `Session Attribute 3` and `Session Attribute 1`. | |
| 运行时提示中的格式无效 | 密钥无效 `BookFlight.Car。 “`为运行时提示提供。对于运行时提示,密钥应采用格式 <intentName>.<slotName>。 | 如果 '.' 必须出现在密钥中间,则无法从该密钥中提取意图名称和插槽名称。格式错误的示例:BookFlight“,”。 BookFlight.Car”、“BookFlight.Car。” |
| 运行时提示键中的意图名称无效 | Found invalid intent `intent@name` for Runtime Hints. Check intent name. | 正则表达式检查:^([0-9a-zA-Z][_-]?)+$ |
| 运行时提示键中的槽位名称无效 | Found invalid slot name in `Slot@Name` for Runtime Hints. Check slot name. | 正则表达式:^([0-9a-zA-Z][_-]?)+$,开头或结尾不得为点(.) |