How to use this model directly from the
tokenizer = AutoTokenizer.from_pretrained("nlptown/bert-base-multilingual-uncased-sentiment") model = AutoModelForSequenceClassification.from_pretrained("nlptown/bert-base-multilingual-uncased-sentiment")
This 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.
Here is the number of product reviews we used for finetuning the model:
|Language||Number of reviews|
The finetuned model obtained the following accuracy on 5,000 held-out product reviews in each of the languages:
|Language||Accuracy (exact)||Accuracy (off-by-1)|
Contact NLP Town for questions, feedback and/or requests for similar models.