能力说明
能力名称:标引结果扁平化
功能简介
此能力专用于处理判定图标引能力的结果,请勿用于其他能力之后 将tag_result数组内的各项内容扁平化为和tag_result同级的字段,内容以特定分隔符连接 若拆分单位设置为TOPIC_NAME,按tag_result.topic_id的不同而拆分为多条输出 若拆分单位设置为TAG_NAME,则按tag_result.name拆分为多条
配置参数
| 参数名称 | 参数类型 | 是否必填 | 默认值 | 参数说明 |
|---|---|---|---|---|
| 标引结果字段 | string | 是 | tag_result | 如果没有自行修改tag_result字段名,则请保持默认值 |
| 拆分为多条的单位 | string | 是 | TOPIC_ID | 选择是按标引结果字段(tag_result)中的topic_id为单位拆分为多条,还是以name字段拆分为多条 |
| 线索词输出字段 | string | 是 | clue_words | 自定义“tag_result.clue_words”输出的字段名 |
| 线索信息输出字段 | string | 是 | hit_clue | 自定义“tag_result.clue”输出的字段名 |
| 标签信息输出字段 | string | 是 | hit_tag | 自定义“tag_result.name”输出的字段名 |
| TOPIC_ID 输出字段 | string | 是 | topic_id | 自定义“tag_result.topic_id”输出的字段名 |
| 线索词分隔符 | string | 是 | (一个半角空格) | 自定义“tag_result.clue_words”输出字段的分隔符 |
| 线索信息分隔符 | string | 是 | (一个半角空格) | 自定义“tag_result.clue”输出字段的分隔符 |
| 标签信息分隔符 | string | 是 | ; (一个英文分号加一个半角空格) | 自定义“tag_result.name”输出字段的分隔符 |
| [TAG_NAME专用]tag_level_x字段名 | string | 是 | taglevel%d | TAG_NAME分割后多个字段tag_level_x可自定义字段名 |
输入简介
判定图标引能力输出的命中数据(数据中有tag_result字段的)
输入数据样例
{
"a": "xxx",
"b": "yyy"
"tag_result": [{
"clue_words": "a",
"clue": "d",
"name": "g",
"topic_id": "1"
}, {
"clue_words": "b",
"clue": "e",
"name": "h",
"topic_id": "1"
}, {
"clue_words": "c",
"clue": "f",
"name": "i",
"topic_id": "2"
}
]
}
输出样例1
此样例为 以拆分单位=TOPIC_ID ,各项设置为 默认值 时的输出结果 输出为两条数据,内容分别为
----------------第一条-------------------
{
"a": "xxx",
"b": "yyy"
"tag_result": [{
"clue_words": "a",
"clue": "d",
"name": "g",
"topic_id": "1"
}, {
"clue_words": "b",
"clue": "e",
"name": "h",
"topic_id": "1"
}
],
"clue_words": "a b",
"hit_clue": "d e",
"hit_tag": "g; h",
"topic_id": "1"
}
----------------第二条-------------------
{
"a": "xxx",
"b": "yyy"
"tag_result": [{
"clue_words": "c",
"clue": "f",
"name": "i",
"topic_id": "2"
}
],
"clue_words": "c",
"hit_clue": "f",
"hit_tag": "i",
"topic_id": "2"
}
输出样例2
此样例为 以拆分单位=TAG_NAME ,各项设置为 默认值 时的输出结果 输出为三条数据,内容分别为
----------------第一条-------------------
{
"a": "xxx",
"b": "yyy"
"tag_result": [{
"clue_words": "a",
"clue": "d",
"name": "g",
"topic_id": "1"
}
],
"clue_words": "a",
"hit_clue": "d",
"hit_tag": "g",
"topic_id": "1"
}
----------------第二条-------------------
{
"a": "xxx",
"b": "yyy"
"tag_result": [{
"clue_words": "b",
"clue": "e",
"name": "h",
"topic_id": "1"
}
],
"clue_words": "b",
"hit_clue": "e",
"hit_tag": "h",
"topic_id": "1"
}
----------------第三条-------------------
{
"a": "xxx",
"b": "yyy"
"tag_result": [{
"clue_words": "c",
"clue": "f",
"name": "i",
"topic_id": "2"
}
],
"clue_words": "c",
"hit_clue": "f",
"hit_tag": "i",
"topic_id": "2"
}
相关能力
判定图标引能力必须前置
参考指标
数据质量:100%
处理性能:未知
附加说明
隐藏参数说明
无