> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/advanced/extensions/ml-assisted-labeling.md).

# ML-Assisted Labeling

ML-assisted labeling extension lets you use open-source models, LLMs, or your own models to generate labels automatically.

## Overview

**ML-assisted labeling** helps automate data labeling for NLP projects. It supports open-source models, large language models (LLMs), and custom models for both span-based and row-based labeling tasks.

The extension generates labels automatically, helping reduce manual effort and allowing users to focus on reviewing results.

## Use cases

### Sentiment analysis

Use **ML-assisted labeling** to classify sentiment in reviews or other text data.

1. Create a row labeling project.
2. Click the gear icon from the extension panel on the right to open the **Manage extensions** dialog, and enable the **ML-assisted labeling** extension.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-3c0e599e2460cff3423a2d0626a5afe6ab29cbe4%2FExtension%20-%20Manage%20extensions%20-%20ML-assisted%20Labeling.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Select [**Sentiment Analysis**](/assisted-labeling/ml-assisted-labeling/sentiment-analysis.md) as the service provider.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-8d47614ef03144385abdc3d1b2e47f6bea7bc1f1%2FExtension%20-%20ML-assisted%20Labeling%20-%20Row%20labeling%20-%20Sentiment%20analysis%20-%20highlight.png?alt=media" alt=""><figcaption></figcaption></figure>
4. Configure **Target text** and **Target question**.
5. Click **Predict labels**.
6. Review the predicted labels and click **Accept** or **Reject**.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-124ee15b44df9f375b4aae0b4ac17183210d76bf%2FExtension%20-%20ML-assisted%20Labeling%20-%20Row%20labeling%20-%20sentiment%20analysis%20-%20project.png?alt=media" alt=""><figcaption></figcaption></figure>

### Span labeling with spaCy

Use the spaCy provider to automatically label entities in text.

1. Create a span labeling project.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-c64c52c294e560b60819d64c07f978faca7d077d%2FExtension%20-%20Labels%20-%20project%20-%20initial.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Click the gear icon from the extension panel on the right to open the **Manage extensions** dialog, and enable the **ML-assisted labeling** extension.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-3c0e599e2460cff3423a2d0626a5afe6ab29cbe4%2FExtension%20-%20Manage%20extensions%20-%20ML-assisted%20Labeling.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Select [**spaCy**](/assisted-labeling/ml-assisted-labeling/spacy.md) as the service provider.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-09dc1df21aa4c147c6f0848588c813a6fae4ac71%2FExtension%20-%20ML-assisted%20Labeling%20-%20Span%20labeling%20-%20spaCy%20-%20highlight.png?alt=media" alt=""><figcaption></figcaption></figure>
4. Click **Predict labels**.
5. Review the predicted labels and click **Accept** or **Reject**.

   <figure><img src="https://448889121-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbjY0HseEqu7LtYAt4d%2Fuploads%2Fgit-blob-06361d937f9fb6f751e55bd6004ca981ccdefa34%2FExtension%20-%20ML-assisted%20Labeling%20-%20Span%20labeling%20-%20spaCy%20-%20project.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
For more information about other providers, see [Assisted Labeling - ML-Assisted Labeling](/assisted-labeling/ml-assisted-labeling.md).
{% endhint %}
