tags
- Introduction
Object Tags
- Audio
- AudioPlus
- HyperText
- Image
- Paragraphs
- Text
- TimeSeries
- Video
Control Tags
- BrushLabels
- Choice
- Choices
- Ellipse
- EllipseLabels
- HyperTextLabels
- KeyPoint
- KeyPointLabels
- Label
- Labels
- List
- Number
- Pairwise
- ParagraphLabels
- Polygon
- PolygonLabels
- Ranker
- Rating
- Rectangle
- RectangleLabels
- Relation
- Relations
- Shortcut
- Taxonomy
- TextArea
- TimeSeriesLabels
Visual & Experience Tags
- Filter
- Header
- Style
- Table
- View
Paragraphs
The Paragraphs tag displays paragraphs of text on the labeling interface. Use to label dialogue transcripts for NLP and NER projects.
The Paragraphs tag expects task data formatted as an array of objects like the following:
[{ $nameKey: “Author name”, $textKey: “Text” }, … ]
Use with the following data types: text
Parameters
Param | Type | Default | Description |
---|---|---|---|
name | string |
Name of the element | |
value | string |
Data field containing the paragraph content | |
[valueType] | json | url |
json |
Whether the data is stored directly in uploaded JSON data or needs to be loaded from a URL |
audioUrl | string |
Audio to sync phrases with | |
[showPlayer] | boolean |
false |
Whether to show audio player above the paragraphs |
[saveTextResult] | no | yes |
yes |
Whether to store labeled text along with the results. By default, doesn’t store text for valueType=url |
[layout] | none | dialogue |
none |
Whether to use a dialogue-style layout or not |
[nameKey] | string |
"author" |
The key field to use for name |
[textKey] | string |
"text" |
The key field to use for the text |
Sample Results JSON
Name | Type | Description |
---|---|---|
value | Object |
|
value.start | number |
index of paragraph where the region starts |
value.end | number |
index of paragraph where the region ends (xpath) |
value.startOffset | number |
offset within start paragraph |
value.endOffset | number |
offset within end paragraph |
[value.text] | string |
text content of the region, can be skipped |
Example JSON
{
"value": {
"start": 3,
"end": 5,
"startOffset": 2,
"endOffset": 81,
"paragraphlabels": ["Car"]
}
}
Example
<!--Labeling configuration to label paragraph regions of text containing dialogue-->
<View>
<Paragraphs name="dialogue-1" value="$dialogue" layout="dialogue" />
<ParagraphLabels name="importance" toName="dialogue-1">
<Label value="Important content"></Label>
<Label value="Random talk"></Label>
</ParagraphLabels>
</View>
Couldn't find what you were looking for? Please let us know on
Slack
If you found an error, you can file an issue on GitHub!

If you found an error, you can file an issue on GitHub!