段落标签
ParagraphLabels标签用于创建带标注的段落。需与Paragraphs标签配合使用,来对文本段落进行标注。
适用于以下数据类型:段落。
参数
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| name | string |
Name of the element | |
| toName | string |
Name of the paragraph element to label | |
| [choice] | single | multiple |
single |
Configure whether you can select one or multiple labels |
| [maxUsages] | number |
Maximum number of times a label can be used per task | |
| [showInline] | boolean |
true |
Show labels in the same visual line |
示例
用于标注段落的基础标注配置
<View>
<ParagraphLabels name="labels" toName="prg">
<Label value="Statement" />
<Label value="Question" />
</ParagraphLabels>
<Paragraphs name="prg" value="$dialogue" layout="dialogue" />
</View>