Model Card for Model ID

Model Details

Model Description

This is the model card of a ๐Ÿค— transformers model that has been pushed on the Hub. This model is for Hindi-English code-mixed hate detection.

  • Developed by: Aakash Kumar, Debajyoti Mazumder, Jasabanta Patro
  • Model type: Text Classification
  • Language(s) : Hindi-English code-mixed
  • Parent Model: See the BERT multilingual base model (cased) for more information about the model.

How to Get Started with the Model

Details of usage

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("debajyotimaz/codemix_hate")
model = AutoModelForSequenceClassification.from_pretrained("debajyotimaz/codemix_hate")
inputs = tokenizer("Mai tumse hate karta hun", return_tensors="pt")
prediction= model(input_ids=inputs['input_ids'],attention_mask=inputs['attention_mask'])
print(prediction.logits)

Metrics

We use the F1 score of positive class as the evaluation metric for training of our model because it takes into account the Acc, Pre and Rec values.

Downloads last month
1
Safetensors
Model size
177M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support