# Sentiment Analysis

{% hint style="info" %}
**Supported labeling types**: Row labeling.
{% endhint %}

Sentiment analysis classifies text as “Positive” or “Negative”. The sentiment analysis model is based on [DistilBERT-base-uncased-finetuned-SST-2](https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english), a fine-tuned version of DistilBERT-base-uncased, specifically trained on the SST-2 dataset.

<figure><img src="/files/rR4ygzFLEGDbAeZ6ydaE" alt="Image of ML Assisted with Sentiment Analysis"><figcaption></figcaption></figure>

### Model details

* The model is using a distilled version developed by Hugging Face based on the Text Classification task pipeline.
* Trained on Stanford Sentiment Treebank ([sst2](https://huggingface.co/datasets/stanfordnlp/sst2)) corpora which contains 67,349 movie review excerpts with human-annotated sentiment labels.
* The model achieves a **91.3%** accuracy on the development set.
* The model hosted locally within the Datasaur Intelligence container.

### Usage

* This model is primarily used for sentiment classification and can also be used for topic classification.
* The base model supports masked language modeling and next sentence prediction but it is primarily intended for fine-tuning on downstream tasks.
* To explore additional fine-tuned versions for different tasks, check out the [Hugging Face model hub](https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english).


---

# 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/assisted-labeling/ml-assisted-labeling/sentiment-analysis.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.
