Downloads · 30 days
5
1% of all-time downloads
Akazi/bert-base-multilingual-uncased
bert-base-multilingual-uncased is a text classification model from Akazi. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This repository contains a fine-tuned sentiment analysis model based on the BERT base multilingual model. The model is trained on a dataset with texts labeled as 'negative', 'neutral', or 'positive'.
Downloads · 30 days
5
1% of all-time downloads
All-time downloads
663
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin670 MB · 99%
From the Hugging Face model README
This repository contains a fine-tuned sentiment analysis model based on the BERT base multilingual model. The model is trained on a dataset with texts labeled as 'negative', 'neutral', or 'positive'.
The model is built using the Hugging Face Transformers library and the 'bert-base-multilingual-uncased' pre-trained model. It is fine-tuned on a sentiment analysis task, allowing it to classify input texts into one of three sentiment categories: negative, neutral, or positive.
To use this model, you can load it from the Hugging Face Model Hub using the following code:
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
model_name = "Akazi/bert-base-multilingual-uncased"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
texts = ["This is a great product!", "I'm not sure about this."]
predictions = classifier(texts)
print(predictions)
This code will load the model and tokenizer from the Hugging Face Model Hub, create a text classification pipeline, and use it to classify the provided texts. The output will be a list of dictionaries, where each dictionary contains the predicted label and score for the corresponding input text.
The model was evaluated on a held-out test dataset, and the following metrics were obtained:
Please note that the performance may vary depending on the input data and domain.
The model was trained on a dataset consisting of text samples labeled as 'negative', 'neutral', or 'positive'. The dataset was preprocessed by mapping the textual labels to numeric values (0 for 'negative', 1 for 'neutral', and 2 for 'positive').
This model is licensed under the MIT License.
This model was developed by Abdullah Kazi using the Hugging Face Transformers library and the BERT base multilingual model.