指南 3个标注团队操作手册:提升标注速度与质量

网站评分

当您需要对网站质量进行评分,或评估网站内容的可信度并进行分类时,可以使用此模板。

交互式模板预览

标注配置

<View>
  <HyperText name="website" value="$website" inline="true"/>

  <Header value="Rate this website"/>
  <Rating name="rating" toName="website" maxRating="10" icon="star" size="medium" />

  <Choices name="choices" choice="single-radio" toName="website" showInline="true">
    <Choice value="Important article"/>
    <Choice value="Yellow press"/>
  </Choices>
</View>

关于标注配置

所有标注配置必须包含在View标签内。

HyperText对象标签用于指定待标注网站的位置,并设定在标注界面内联显示:

<HyperText name="website" value="$website" inline="true"/>

您可以添加一个header来为标注者提供说明:

<Header value="Rate this website"/>

Rating 评分控件为标注者提供一个10星制的星级评分,用于对网站内容进行评级:

<Rating name="rating" toName="website" maxRating="10" icon="star" size="medium" />

Choices 控制标签允许标注者对网站内容进行分类:

<Choices name="choices" choice="single-radio" toName="website" showInline="true">
  <Choice value="Important article"/>
  <Choice value="Yellow press"/>
</Choices>

输入数据

使用此模板有两种方式来组织输入数据:

  • Use HTML files
  • 在JSON格式文件中使用网站链接

Use HTML files

This method is recommended. Save the website content that you want to rate as HTML files, and import the HTML files into Label Studio.

如果使用此方法,请将HyperText标签的inline参数更改为false

This method seems simpler, but due to CORS (cross-origin resource sharing) restrictions on websites appearing in HTML iframes, it only works for websites hosted on the same domain as your Label Studio instance. For example, if you want to rate websites hosted on your organization’s domain, and Label Studio is hosted on the same domain, you can probably use this option. In most cases, CORS restrictions prevent the website from being visible.

如果此选项适合您,可以使用以下示例JSON: 单个任务的格式如下所示:

{
    "website": "<iframe src='https://heartex.com' width='100%' height='600px'/>"
}

或者像以下这样的多个任务:

[
   {
      "data":{
         "website": "<iframe src='https://heartex.com' width='100%' height='600px'/>"
      }
   },
   {
      "data":{
         "website": "<iframe src='https://example.com' width='100%' height='600px'/>"
      }
   },
   {
      "data":{
         "website": "<iframe src='https://labelstud.io' width='100%' height='600px'/>"
      }
   }
]