forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Fix tags in gitignore; add missed tags (HumanSignal#2650)
* docs: Fix tags in gitignore; add missed tags Brush, Collapse and Repeater tags missed from docs. * Capitalize some descriptions * Also update Shortcut tag from tag jsdoc * docs: add new DateTime, reorder control tags * docs: Brush is not new, just missed previously * 24 hour
- Loading branch information
Showing
30 changed files
with
183 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,6 @@ archive | |
*.idea/* | ||
.vscode/* | ||
pyrightconfig.json | ||
tags | ||
tags.temp | ||
mydatabase | ||
label_studio.sqlite3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: Brush | ||
type: tags | ||
order: 401 | ||
meta_title: Brush Tag for Image Segmentation Labeling | ||
meta_description: Customize Label Studio with brush tags for image segmentation labeling for machine learning and data science projects. | ||
--- | ||
|
||
Use the Brush tag for image segmentation tasks where you want to apply a mask or use a brush to draw a region on the image. | ||
|
||
Use with the following data types: image | ||
|
||
### Parameters | ||
|
||
| Param | Type | Default | Description | | ||
| --- | --- | --- | --- | | ||
| name | <code>string</code> | | Name of the element | | ||
| toName | <code>string</code> | | Name of the image to label | | ||
| [choice] | <code>single</code> \| <code>multiple</code> | <code>single</code> | Configure whether the data labeler can select one or multiple labels | | ||
| [maxUsages] | <code>number</code> | | Maximum number of times a label can be used per task | | ||
| [showInline] | <code>boolean</code> | <code>true</code> | Show labels in the same visual line | | ||
| [smart] | <code>boolean</code> | | Show smart tool for interactive pre-annotations | | ||
| [smartOnly] | <code>boolean</code> | | Only show smart tool for interactive pre-annotations | | ||
|
||
### Sample Results JSON | ||
|
||
| Name | Type | Description | | ||
| --- | --- | --- | | ||
| original_width | <code>number</code> | Width of the original image (px) | | ||
| original_height | <code>number</code> | Height of the original image (px) | | ||
| image_rotation | <code>number</code> | Rotation degree of the image (deg) | | ||
| value | <code>Object</code> | | | ||
| value.format | <code>"rle"</code> | Format of the masks, only RLE is supported for now | | ||
| value.rle | <code>Array.<number></code> | RLE-encoded image | | ||
|
||
### Example JSON | ||
```json | ||
{ | ||
"original_width": 1920, | ||
"original_height": 1280, | ||
"image_rotation": 0, | ||
"value": { | ||
"format": "rle", | ||
"rle": [0, 1, 1, 2, 3], | ||
"brushlabels": ["Car"] | ||
} | ||
} | ||
``` | ||
|
||
### Example | ||
```html | ||
<!--Basic image segmentation labeling configuration--> | ||
<View> | ||
<Brush name="labels" toName="image"> | ||
<Label value="Person" /> | ||
<Label value="Animal" /> | ||
</Brush> | ||
<Image name="image" value="$image" /> | ||
</View> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Collapse | ||
type: tags | ||
order: 501 | ||
is_new: t | ||
--- | ||
|
||
Collapse tag, a content area which can be collapsed and expanded. | ||
|
||
### Parameters | ||
|
||
| Param | Type | Default | Description | | ||
| --- | --- | --- | --- | | ||
| [accordion] | <code>boolean</code> | <code>true</code> | Works as an accordion | | ||
| [bordered] | <code>string</code> | <code>false</code> | Shows border | | ||
|
||
### Example | ||
```html | ||
<Collapse> | ||
<Panel value="Panel Header"> | ||
<View><Header value="Hello world" /></View> | ||
</Panel> | ||
</Collapse> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: DateTime | ||
type: tags | ||
order: 405 | ||
is_new: t | ||
--- | ||
|
||
The DateTime tag adds date and time selection to the labeling interface. Use this tag to add a date, timestamp, month, or year to an annotation. | ||
|
||
Use with the following data types: audio, image, HTML, paragraph, text, time series, video | ||
|
||
### Parameters | ||
|
||
| Param | Type | Default | Description | | ||
| --- | --- | --- | --- | | ||
| name | <code>string</code> | | Name of the element | | ||
| toName | <code>string</code> | | Name of the element that you want to label | | ||
| only | <code>string</code> | | Comma-separated list of parts to display (date, time, month, year) date and month/year can't be used together. The date option takes precedence | | ||
| format | <code>string</code> | | Input/output strftime format for datetime (internally it's always ISO); when both date and time are displayed, by default shows ISO with a "T" separator; when only date is displayed, by default shows ISO date; when only time is displayed, by default shows a 24 hour time with leading zero | | ||
| [min] | <code>string</code> | | Set a minimum datetime value for only=date, minimum year for only=year | | ||
| [max] | <code>string</code> | | Set a maximum datetime value for only=date, maximum year for only=year | | ||
| [required] | <code>boolean</code> | <code>false</code> | Whether datetime is required or not | | ||
| [requiredMessage] | <code>string</code> | | Message to show if validation fails | | ||
| [perRegion] | <code>boolean</code> | | Use this option to label regions instead of the whole object | | ||
|
||
### Example | ||
```html | ||
<View> | ||
<Text name="txt" value="$text" /> | ||
<DateTime name="datetime" toName="txt" only="date" /> | ||
</View> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: Repeater | ||
type: tags | ||
order: 504 | ||
is_new: t | ||
meta_title: Repeater Tag to duplicate annotation settings | ||
meta_description: Customize Label Studio with the Repeater tag to repeat similar data blocks to accelerate labeling for machine learning and data science projects. | ||
--- | ||
|
||
Repeater Tag for annotating multiple data objects in a dynamic range with the same semantics. You can loop through data items in a python-like for cycle in the labeling process. | ||
It repeats tags inside it for every item in a given data array from your dataset. Supports all tags except Labels. | ||
|
||
### Parameters | ||
|
||
| Param | Type | Default | Description | | ||
| --- | --- | --- | --- | | ||
| on | <code>string</code> | | Data field object with array with similar data | | ||
| [indexFlag] | <code>string</code> | <code>"{{idx}}"</code> | Placeholder for array index in params of underlying tags | | ||
|
||
### Example | ||
```html | ||
<Repeater on="$utterances" indexFlag="{{idx}}"> | ||
<Text name="user_{{idx}}" value="$utterances[{{idx}}].text"/> | ||
<Header value="Utterance Review"/> | ||
<Choices name="utterance_action_{{idx}}" showInline="true" toName="user_{{idx}}"> | ||
<Choice value="No Action"/> | ||
<Choice value="Training"/> | ||
<Choice value="New Intent"/> | ||
</Choices> | ||
</Repeater> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.