# ML-Assisted Labeling

## 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="/files/9KrQiRV1too1I67Qilqd" alt=""><figcaption></figcaption></figure>
3. Select [**Sentiment Analysis**](/assisted-labeling/ml-assisted-labeling/sentiment-analysis.md) as the service provider.

   <figure><img src="/files/rR4ygzFLEGDbAeZ6ydaE" 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="/files/8fcm2xSYaIluIUDmGB2v" 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="/files/rQFFRQgriIzpQH2jQErC" 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="/files/9KrQiRV1too1I67Qilqd" alt=""><figcaption></figcaption></figure>
3. Select [**spaCy**](/assisted-labeling/ml-assisted-labeling/spacy.md) as the service provider.

   <figure><img src="/files/sML60IzBG0yL64WuhaZ1" alt=""><figcaption></figcaption></figure>
4. Click **Predict labels**.
5. Review the predicted labels and click **Accept** or **Reject**.

   <figure><img src="/files/sULJ0bE8R9pnbeqBNQLr" 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
