PDF分类
如果您想进行PDF分类,请使用此模板。该模板会提示标注者以10星制对PDF进行评分,然后进行分类。
交互式模板预览
标注配置
<View>
<Header value="Rate this article"/>
<Rating name="rating" toName="pdf" maxRating="10" icon="star" size="medium" />
<Choices name="choices" choice="single-radio" toName="pdf" showInline="true">
<Choice value="Important article"/>
<Choice value="Yellow press"/>
</Choices>
<Pdf name="pdf" value="$pdf"/>
</View>
<!-- {
"pdf": "/static/samples/sample.pdf"
} -->
关于标注配置
所有标注配置必须包含在View标签内。
您可以添加一个header来为标注者提供说明:
<Header value="Rate this article"/>
使用Rating控制标签为PDF应用10星评分:
<Rating name="rating" toName="pdf" maxRating="10" icon="star" size="medium" />
使用Choices控制标签向标注者展示分类选项:
<Choices name="choices" choice="single-radio" toName="pdf" showInline="true">
<Choice value="Important article"/>
<Choice value="Yellow press"/>
</Choices>
使用 Pdf 标签来内嵌渲染PDF数据:
<Pdf name="pdf" value="$pdf"/>
输入数据
Label Studio 不支持直接标注PDF格式的文件。您应在数据中使用embed标签来加载PDF:
{
"pdf": "<embed src='https://app.heartex.ai/static/samples/sample.pdf' width='100%' height='600px'/>"
}