Downloads · 30 days
20
0% of all-time downloads
ganeshkharad/gk-hinglish-sentiment
gk-hinglish-sentiment is a text classification model from ganeshkharad. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
20
0% of all-time downloads
All-time downloads
14.9K
Public
Parameters
178M
2.1 GB on disk
Likes
8
Public
Click a slice to open those files.
.bin712 MB · 33%
How the weights are stored.
F32178M · 100%
From the Hugging Face model README
gk-hinglish-sentimentTrained small amount of reviews dataset
I wanted something to work well with hinglish data as it is being used in India mostly. The training data was not much as expected
#sample code
from transformers import BertTokenizer, BertForSequenceClassification
tokenizerg = BertTokenizer.from_pretrained("/content/model")
modelg = BertForSequenceClassification.from_pretrained("/content/model")
text = "kuch bhi type karo hinglish mai"
encoded_input = tokenizerg(text, return_tensors='pt')
output = modelg(**encoded_input)
print(output)
#output contains 3 lables LABEL_0 = Negative ,LABEL_1 = Nuetral ,LABEL_2 = Positive
The data contains only hinglish codemixed text it and was very much limited may be I will Update this model if I can get good amount of data
Training data contains labeled data for 3 labels
link to the pre-trained model card with description of the pre-training data. I have Tuned below model
https://huggingface.co/rohanrajpal/bert-base-multilingual-codemixed-cased-sentiment
title = "{GLUEC}o{S}: An Evaluation Benchmark for Code-Switched {NLP}",
author = "Khanuja, Simran and
Dandapat, Sandipan and
Srinivasan, Anirudh and
Sitaram, Sunayana and
Choudhury, Monojit",
booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
month = jul,
year = "2020",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2020.acl-main.329",
pages = "3575--3585"
}