---
title: NuSentiment-multilingual
canonical_url: "https://www.modelscope.ai/models/numind/NuSentiment-multilingual"
md_url: "https://www.modelscope.ai/models/numind/NuSentiment-multilingual.md"
repository: numind/NuSentiment-multilingual
last_updated: 2026-05-22
license: mit
pipeline_tag: feature-extraction
tasks:
  - feature-extraction
model_type:
  - xlm-roberta
architectures:
  - XLMRobertaModel
parameters: 278.0M
tensor_type:
  - F32
library_name:
  - pytorch
  - transformer
  - safetensors
frameworks:
  - pytorch
language:
  - en
  - ar
  - fr
  - de
  - pt
  - it
  - es
  - zh
  - ja
  - ko
downloads: 167
stars: 0
tags:
  - sentiment-analysis
  - text-classification
  - generic
  - sentiment-classification
  - multilingual
---

# NuSentiment-multilingual

> NuSentiment-multilingual - An open-source model by numind on ModelScope. Base version of e5-multilingual finetunned on an annotated subset of mC4 (multilingual C4). This model provide generic embedding for sentiment analysis. Embeddings can be used out of…

numind/NuSentiment-multilingual is a 278.0M-parameter feature-extraction model on ModelScope. licensed under mit.

- **Repository**: numind/NuSentiment-multilingual
- **License**: mit
- **Tasks**: feature-extraction
- **Parameters**: 278.0M
- **Tags**: sentiment-analysis, text-classification, generic, sentiment-classification, multilingual
- **Downloads**: 167
- **Stars**: 0
- **Last updated**: 2026-05-22

Source: https://www.modelscope.ai/models/numind/NuSentiment-multilingual

---

## Model

Base version of e5-multilingual finetunned on an annotated subset of mC4 (multilingual C4). This model provide generic embedding for sentiment analysis. Embeddings can be used out of the box or fine tune on specific datasets. 

Blog post: https://www.numind.ai/blog/creating-task-specific-foundation-models-with-gpt-4

## Usage

Below is an example to encode text and get embedding.

```python
import torch
from transformers import AutoTokenizer, AutoModel


model = AutoModel.from_pretrained("Numind/e5-multilingual-sentiment_analysis")
tokenizer = AutoTokenizer.from_pretrained("Numind/e5-multilingual-sentiment_analysis")
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
model.to(device)

size = 256
text = "This movie is amazing"

encoding = tokenizer(
    text,
    truncation=True, 
    padding='max_length', 
    max_length= size,
)

emb = model(
      torch.reshape(torch.tensor(encoding.input_ids),(1,len(encoding.input_ids))).to(device),output_hidden_states=True
).hidden_states[-1].cpu().detach()

embText = torch.mean(emb,axis = 1)
```
