You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/source/guide/quality.md
+28
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,34 @@ For specific labels, you can see in a donut chart how many labels of each type w
116
116
117
117
For example, if you're developing a dataset of OCR images, and 90% of your tasks have **Text** labels and 10% have **Handwriting** labels, you might want to increase the number of images of handwriting in your dataset, to improve the eventual accuracy of a machine learning model trained on this dataset.
118
118
119
+
## Pause an annotator
120
+
121
+
For organizations with a large number of annotators, it might prove useful to pause an annotator's progress. This might be useful for annotators that are performing poorly or exhibiting behavior that might indicate they have automated their work (bot behavior).
122
+
123
+
You can pause annotators from the Members dashboard in a project. This action is only available next to users in the Annotator and Reviewer roles:
124
+
125
+

126
+
127
+
When a user is paused, the following occurs:
128
+
129
+
* They immediately see a message informing them that they have been paused.
130
+
131
+

132
+
* Their progress within their current task is saved as a draft, but they cannot make any further changes.
133
+
* When they click **Go Back**, they are returned to the Projects page. If they attempt to re-enter the project, they are shown the error message above.
134
+
135
+
!!! info Tip
136
+
137
+
If you have [custom scripts](scripts) enabled, you can automatically pause an annotator based on certain behaviors and then customize the message that appears on their screen.
138
+
139
+
For more information, see [Custom script examples - Pause an annotator](script_examples#Pause-an-annotator).
140
+
141
+
!!! info Tip
142
+
143
+
If you hover over the **Paused** indicator, you can see the message that was shown to the user when they were paused. If a user was manually paused, it also shows who initiated the action.
144
+
145
+

146
+
119
147
## Verify model and annotator performance
120
148
121
149
To verify the performance of specific annotators, review the **Members** section for a specific project. If you don't see an annotator's activity reflected, make sure they have been added as a member to the project.
Copy file name to clipboardexpand all lines: docs/source/guide/script_examples.md
+223-1
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,9 @@ The following examples work when [custom scripts](scripts) are enabled.
15
15
16
16
For details on implementing your own custom scripts, see [Label Studio Interface (LSI)](scripts#Label-Studio-Interface-LSI) and [Frontend API implementation details](scripts#Frontend-API-implementation-details).
17
17
18
+
!!! info Tip
19
+
You can find additional script examples in our [label-studio-custom-scripts repo](https://github.com/HumanSignal/label-studio-custom-scripts).
20
+
18
21
## Plotly
19
22
20
23
Use [Plotly](https://plotly.com/) to insert charts and graphs into your labeling interface. Charts are rendered in every annotation opened by a user.
@@ -597,4 +600,223 @@ The `TimelineLabels` tag is connected to the second video (`video0`), allowing a
You can manually [pause an annotator](quality#Pause-an-annotator) to prevent stop them from completing tasks and revoke their project access.
608
+
609
+
This script automatically pauses an annotator who breaks any of the following rules and customizes the message that appears:
610
+
611
+
* Too many duplicate values `timesInARow(3)`:
612
+
613
+
Checks if the last three submitted annotations in the `TextArea` field (`comment`) all have the same value. If they do, it returns a custom warning message.
614
+
615
+

616
+
617
+
* Too many similar values `tooSimilar()`:
618
+
619
+
For the `Choices` options (`sentiment`), it computes a deviation over the past values. If the deviation is below a threshold (meaning the values are too uniform/similar), it returns a custom warning message.
620
+
621
+

622
+
623
+
* Too many submissions over a period of time `tooFast()`:
624
+
625
+
Monitors the overall speed of annotations. It checks if, for example, 20 annotations were submitted in less than 10 minutes. If so, a custom warning appears.
626
+
627
+

628
+
629
+
To unpause an annotator, use the [Members dashboard](quality#Pause-an-annotator).
630
+
631
+
!!! info Tip
632
+
633
+
If you hover over the **Paused** indicator, you can see the message that was shown to the user when they were paused. If a user was manually paused, it also shows who initiated the action.
634
+
635
+

636
+
637
+
#### Script
638
+
639
+
```javascript
640
+
/****** CONFIGURATION FOR PAUSING RULES ******/
641
+
/**
642
+
* `fields` describe per-field rules in a format
643
+
* <field-name>: [<rule>(<optional params for the rule>)]
644
+
* `global` is for rules applied to the whole annotation
645
+
*/
646
+
constRULES= {
647
+
fields: {
648
+
comment: [timesInARow(3)],
649
+
sentiment: [tooSimilar()],
650
+
},
651
+
global: [tooFast()],
652
+
}
653
+
/**
654
+
* Messages for users when they are paused.
655
+
* Each message is a function with the same name as original rule and it receives an object with
656
+
* `items` and `field`.
657
+
*/
658
+
constMESSAGES= {
659
+
timesInARow: ({ field }) =>`Too many similar values for ${field}`,
660
+
tooSimilar: ({ field }) =>`Too similar values for ${field}`,
661
+
tooFast: () =>`Too fast annotations`,
662
+
}
663
+
664
+
665
+
666
+
/****** ALL AVAILABLE RULES ******/
667
+
/**
668
+
* They recieve params and return function which recieves `items` and optional `field`.
669
+
* If condition is met it returns warning message. If not — returns `false`.
670
+
*/
671
+
672
+
// check if values for the `field` in last `times` items are the same
0 commit comments