Text Classification
Transformers
ONNX
Safetensors
Transformers.js
modernbert
sentiment-analysis
sentiment
mmbert
text-embeddings-inference
Run this model with HF Jobs
Run Horizon-Labs/multilingual-sentiment-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Horizon-Labs/multilingual-sentiment-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Horizon-Labs/multilingual-sentiment-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Horizon-Labs/multilingual-sentiment-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Horizon-Labs/multilingual-sentiment-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Horizon-Labs/multilingual-sentiment-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Horizon-Labs/multilingual-sentiment-base") model = AutoModelForSequenceClassification.from_pretrained("Horizon-Labs/multilingual-sentiment-base", device_map="auto") - Transformers.js
How to use Horizon-Labs/multilingual-sentiment-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Horizon-Labs/multilingual-sentiment-base'); - Notebooks
- Google Colab
- Kaggle
Download training/data_stats.json from Horizon-Labs/multilingual-sentiment-base: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/Horizon-Labs/multilingual-sentiment-base/resolve/main/training/data_stats.json
- Command line
-
hf download hf://Horizon-Labs/multilingual-sentiment-base/training/data_stats.json
-
curl -L -o data_stats.json https://huggingface.co/Horizon-Labs/multilingual-sentiment-base/resolve/main/training/data_stats.json
551 Bytes
| { | |
| "n_in": 446608, | |
| "removed_eval_overlap": 38, | |
| "n_train": 433173, | |
| "n_val": 13397, | |
| "by_src": { | |
| "gen": 253484, | |
| "fw_any": 85350, | |
| "fw_opinion": 81469, | |
| "gen_long": 26267 | |
| }, | |
| "label_by_src": { | |
| "fw_any": { | |
| "negative": 7918, | |
| "neutral": 60396, | |
| "positive": 17036 | |
| }, | |
| "fw_opinion": { | |
| "negative": 12736, | |
| "neutral": 49282, | |
| "positive": 19451 | |
| }, | |
| "gen": { | |
| "negative": 92780, | |
| "neutral": 87355, | |
| "positive": 73349 | |
| }, | |
| "gen_long": { | |
| "negative": 7018, | |
| "neutral": 10152, | |
| "positive": 9097 | |
| } | |
| }, | |
| "n_lang": 137 | |
| } |