> 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.datasaur.ai/advanced/extensions/ml-assisted-labeling.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
