nlptown/bert-base-multilingual-uncased-sentiment

text classificationtransformersennltransformerspytorchtfjaxsafetensorsbertmit
738.3K

bert-base-multilingual-uncased-sentiment

Visit the NLP Town website for an updated version of this model, with a 40% error reduction on product reviews.

This is a bert-base-multilingual-uncased model finetuned for sentiment analysis on product reviews in six languages: English, Dutch, German, French, Spanish, and Italian. It predicts the sentiment of the review as a number of stars (between 1 and 5).

This model is intended for direct use as a sentiment analysis model for product reviews in any of the six languages above or for further finetuning on related sentiment analysis tasks.

Training data

Here is the number of product reviews we used for finetuning the model:

LanguageNumber of reviews
English150k
Dutch80k
German137k
French140k
Italian72k
Spanish50k

Accuracy

The fine-tuned model obtained the following accuracy on 5,000 held-out product reviews in each of the languages:

  • Accuracy (exact) is the exact match for the number of stars.
  • Accuracy (off-by-1) is the percentage of reviews where the number of stars the model predicts differs by a maximum of 1 from the number given by the human reviewer.
LanguageAccuracy (exact)Accuracy (off-by-1)
English67%95%
Dutch57%93%
German61%94%
French59%94%
Italian59%95%
Spanish58%95%

Contact

In addition to this model, NLP Town offers custom models for many languages and NLP tasks.

If you found this model useful, you can buy us a coffee.

Feel free to contact us for questions, feedback and/or requests for similar models.

DEPLOY IN 60 SECONDS

Run bert-base-multilingual-uncased-sentiment on Runcrate

Deploy on H100, A100, or RTX GPUs. Pay only for what you use. No setup required.