Downloads · 30 days
9
5% of all-time downloads
HasinMDG/XT-Sentiment-XLM-Roberta-Large
XT-Sentiment-XLM-Roberta-Large is a text classification model from HasinMDG. Use it when you need a label for a piece of text. It is set up for sentence-transformers. The card lists the license as apache-2.0.
Unlike a classical sentiment classifier, this model was built to measure the sentiment towards a particular entity on a particular pre-determined topic
Downloads · 30 days
9
5% of all-time downloads
All-time downloads
195
Public
Repo size
4.5 GB
Likes
0
Public
Click a slice to open those files.
.bin2.2 GB · 99%
From the Hugging Face model README
Unlike a classical sentiment classifier, this model was built to measure the sentiment towards a particular entity on a particular pre-determined topic
model = ....
text = "I pity Facebook for their lack of commitment against global warming , I like google for its support of increased education"
# In the previous example we notice that depending on the type of entity (Google or Facebook) and depending on the type of to#pics (education or climate change) we have two types of sentiments
# Predict the sentiment towards Facebook (entity) on Climate change (topic)
sentiment, probability = model.predict(text, topic="climate change", entity= "Facebook")
# sentiment = "negative
# Predict the sentiment towards Google (entity) on Education (topic)
sentiment, probability = model.predict(text, topic="climate change", entity= "Facebook")
# Sentiment = "positive"
# Predict the sentiment towards Google (entity) on Climate Change (topic)
sentiment, probability = model.predict(text, topic="climate change", entity= "Facebook")
# Sentiment = "neutral" / "not_found"
# Predict the sentiment towards Facebook (entity) on Education (topic)
sentiment, probability = model.predict(text, topic="climate change", entity= "Facebook")
# Sentiment = "neutral" / "not_found"
This is a SetFit model that can be used for sentiment classification. The model has been trained using an efficient few-shot learning technique that involves:
For a global overview of the pipeline used for inference please refer to this colab notebook
The performances of the model on our internal test set are:
author = {HasiMichael, Solofo, Bruce, Sitwala},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Sentiment Classification toward Entity and Topics},
year = {2023/04},
version = {0}