文档检索
如果您想开始训练文档检索或推荐模型,可能需要开发一个能识别相似文档的数据集。使用此模板来识别并选择与特定查询或现有文档相关的文档。
交互式模板预览
标注配置
<View>
<Text name="query" value="$query" />
<Header value="Select document related to the query:" />
<View style="display: flex">
<View>
<Text name="text1" value="$text1" />
<Text name="text2" value="$text2" />
<Text name="text3" value="$text3" />
</View>
<View style="padding: 30px">
<Choices name="selection" toName="query" required="true" choice="multiple">
<Choice value="One" />
<Choice value="Two" />
<Choice value="Three" />
</Choices>
</View>
</View>
</View>
关于标注配置
所有标注配置必须包含在View标签内。
使用Text对象标签来指定需要标注的文本数据:
<Text name="query" value="$query" />
您可以添加一个header来为标注者提供说明:
<Header value="Select document related to the query:" />
```
Add styling to the [View](/tags/view.html) tag to control the appearance of the text samples and choices
```xml
<View style="display: flex">
将文本片段包裹在新的View标签中,并使用Text对象标签来显示另外3个文本片段:
<View>
<Text name="text1" value="$text1" />
<Text name="text2" value="$text2" />
<Text name="text3" value="$text3" />
</View>
为另一个View标签添加样式,将选项放置在文本样本旁边,然后使用Choices控制标签要求标注者进行选择,并允许他们选择适用的多个文本片段:
<View style="padding: 30px">
<Choices name="selection" toName="query" required="true" choice="multiple">
<Choice value="One" />
<Choice value="Two" />
<Choice value="Three" />
</Choices>
</View>