# Review

## Overview

The **Review** extension is designed to streamline your labeling review process, providing you with a dedicated tool to ensure the accuracy and consistency of your labeled data. Whether you're working on a small dataset or a large-scale project, this feature ensures that no labeling discrepancies go unnoticed.

## How to enable it?

You just have to **enable** it by clicking the **Manage extensions** button (gear icon) from the extension panel on the right.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-f97358e8baebfc19605c3d41904e9d1c71c3547e%2FExtension%20-%20Manage%20extensions%20-%20Review.png?alt=media" alt=""><figcaption></figcaption></figure>

## How it works?

This extension provides essential information related to labeling work and review, including **labelers' information, conflicting labels,** and **reviewing progress**.

This extension consists of three main tabs:

1. Conflicts
2. Member
3. Progress

### Conflicts

There are three key aspects in this tab:

1. **Document** allows you to view the list of uploaded documents for the project and the conflict information.
2. **Show work from** allows you to select a labeler to see their specific work.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-5c6f6fe8770cfb5ad8cd69048a18acdff28c62ce%2FExtension%20-%20Review%20-%20span%20labeling%20-%20highlight%20-%20show%20work%20from.png?alt=media" alt=""><figcaption></figcaption></figure>
3. **Conflicts** allows you to identify all conflicting answers provided by different labelers.
   1. For projects with multiple files, make sure to specify the file by selecting it from the Document dropdown.
   2. The displayed information varies depending on the project type.

### Progress

This tab will only be visible when the **Set review sampling rate** setting is enabled. Reviewers can track their progress in this tab, determining whether they are still in progress or have fulfilled the configured sampling rate.

Read more information about review sampling [here](https://docs.datasaur.ai/data-studio-projects/reviewing-nlp-projects/review-sampling).

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-f026c769d1ab4da884fb24b3394e2e853f4884c6%2FExtension%20-%20Review%20-%20span%20labeling%20-%20sampling%20rate.png?alt=media" alt=""><figcaption></figcaption></figure>

## Span Based Labeling

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-4697c47580f1a15164a531c1a8fe161dfcd340a7%2FExtension%20-%20Review%20-%20span%20labeling%20-%20conflicted.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For the detailed reviewing process, please refer to this [Reviewer mode page](https://datasaurai.gitbook.io/datasaur/getting-started/reviewer-mode#token-labeling-reviewer-mode).
{% endhint %}

### Conflicts

The labeling conflicts in span labeling will be shown under the show work from dropdown.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-065f37cde536f3c31f3235f3addd61177bd3f71c%2FExtension%20-%20Review%20-%20span%20labeling%20-%20highlight%20view%20all.png?alt=media" alt=""><figcaption></figcaption></figure>

It will be separated into three sections:

1. **Contents:** This will show you the conflicted words that were changed by the labeler, for example:

   1. The original sentence is “It is **Shakespeare's** longest...”
   2. A labeler edits the sentence into “It is **his** longest...”

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-650aff0daa1634fd7202e9dd3112434186c7101d%2FExtension%20-%20Review%20-%20span%20labeling%20-%20conflicted%20-%20contents.png?alt=media" alt=""><figcaption></figcaption></figure>
2. **Spans:** This will show you the conflicted spans that were labeled by the labelers.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-285ce3b3470374a14d19e7595782d0861dd7c43b%2FExtension%20-%20Review%20-%20span%20labeling%20-%20conflicted%20-%20spans.png?alt=media" alt=""><figcaption></figcaption></figure>
3. **Arrows:** This will show you the conflicted arrows that were labeled by the labelers.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-bd940a20ebc592fe10355c5888490b896878eade%2FExtension%20-%20Review%20-%20span%20labeling%20-%20conflicted%20-%20arrows.png?alt=media" alt=""><figcaption></figcaption></figure>

### Accept or Reject All Conflicted Labels

Previously, managing a large number of unresolved or conflicting labels was time-consuming for Reviewers, as they had to manually accept or reject each label individually. This capability streamlines the process, allowing Reviewers to accept or reject all remaining labels with a single action.

#### How to: Accept or Reject All

{% hint style="info" %}
This action can be applied to both Span and Arrow conflicts.
{% endhint %}

Navigate to the Review extension and then click the **View all** button.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-065f37cde536f3c31f3235f3addd61177bd3f71c%2FExtension%20-%20Review%20-%20span%20labeling%20-%20highlight%20view%20all.png?alt=media" alt=""><figcaption></figcaption></figure>

Click **Accept all** or **Reject all** depending on the action you would like to perform.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-d76aab970c2bce6b953bfed1a34a020efa37ffb4%2FExtension%20-%20Review%20-%20span%20labeling%20-%20reject%20all%20accept%20all.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Important Notes**

* Both actions **cannot be undone** and only apply to labels that are currently visible in the reviewers' interface.
* Accepting or rejecting labels will not affect labels associated with a span or arrow that is part of a sentence in conflict. The correct sentence must be selected first by the reviewer.
  {% endhint %}

#### Accept All Conflicted Labels

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-eb7be90d3ec1ba50878f3a48892dff4842d9dbab%2FProject%20settings%20-%20task%20settings%20-%20spans%20should%20have%20at%20most%20one%20label.png?alt=media" alt=""><figcaption></figcaption></figure>

* When the **Spans should have at most one label** setting is **unchecked**, all conflicted labels will be accepted.
* When the **Spans should have at most one label** setting is **checked**, then:
  * If a conflicted label belongs to a span/arrow that **has another different label applied** to it, then the label will remain conflicted. These require manual resolution by the reviewer.
  * If a conflicted label belongs to a span/arrow that **has no other different label applied** to it, then the label will be accepted.

#### Reject All Conflicted Labels

All conflicted labels will be rejected.

## Row Based Labeling

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-ad1f7c4f87379579e358b20809f57b70468577d9%2FExtension%20-%20Review%20-%20row%20labeling%20-%20conflicted.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For the detailed reviewing process, please refer to this [Reviewer Mode page](https://datasaurai.gitbook.io/datasaur/getting-started/reviewer-mode#row-labeling-reviewer-mode)
{% endhint %}

### Conflicts

The labeling conflicts in row based labeling will be shown under the show work from dropdown.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-1e71b3424c7e19710e63e948be79f9d8a5346ba2%2FExtension%20-%20Review%20-%20row%20labeling%20-%20highlight.png?alt=media" alt=""><figcaption></figcaption></figure>

You can click the **View all** button to see the conflicted answers that occur in the labeling process. It will show you the list of conflicting labels.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-9b738282c8dec293d870dafc09f7fc64caa097ce%2FExtension%20-%20Review%20-%20row%20labeling%20-%20highlight%20-%20conflicted%20answers.png?alt=media" alt=""><figcaption></figcaption></figure>

You can also filter the conflicting answers based on the labeler. To do that, you have to select which labeler you want to review in the **Show work** **from** dropdown.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-ed80cde8d94c49284bd5d8fd705028fc8b4b019a%2FExtension%20-%20Review%20-%20row%20labeling%20-%20highlight%20-%20show%20work%20from.png?alt=media" alt=""><figcaption></figcaption></figure>

This will show you the conflicting answers caused by the labeler.

## Document Labeling

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-717435224be4122c879333d6af8075f232a3dfd8%2FExtension%20-%20Review%20-%20document%20labeling.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For the detailed reviewing process, please refer to this [Reviewer mode page](https://datasaurai.gitbook.io/datasaur/getting-started/reviewer-mode#document-labeling-reviewer-mode).
{% endhint %}

### Conflicts

To resolve conflicts in document labeling projects, you have to go to the **Document labeling** extension to resolve conflicted answers.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-efe77bc2fdfb1fc75e58c703daa015e2ce78dc60%2FExtension%20-%20Review%20-%20document%20labeling%20-%20highlight.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-e0d4feab26715da1107167cad4203c15ef5f3bd4%2FExtension%20%20-%20document%20labeling%20-%20highlight%20-%20conflicted%20-%20initial.png?alt=media" alt=""><figcaption></figcaption></figure>

You can see all labelers' answers and you can also resolve the conflicts by choosing the best answer and submitting it.

<figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-fa022fb9822ca86abc819a51f1cf09026447919b%2FExtension%20%20-%20document%20labeling%20-%20highlight%20-%20conflicted%20-%20selected.png?alt=media" alt=""><figcaption></figcaption></figure>
