Downloads · 30 days
5
12% of all-time downloads
Darshan03/AI-Hackathon
AI-Hackathon is a text classification model from Darshan03. Use it when you need a label for a piece of text. It is set up for transformers.
This model is a fine-tuned version of BERT for binary text classification tasks. It was trained on a specific dataset for classification purposes and is intended for use in text classification applications.
Downloads · 30 days
5
12% of all-time downloads
All-time downloads
42
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of BERT for binary text classification tasks. It was trained on a specific dataset for classification purposes and is intended for use in text classification applications.
This BERT model has been fine-tuned for binary text classification. It is based on the bert-base-uncased model and has been trained to classify text into two categories: Class 0 and Class 1.
bert-base-uncasedThis model is intended for binary text classification tasks. It can be used to classify text data into two categories.
The model can be fine-tuned further for other specific binary text classification tasks by using appropriate datasets and training procedures.
The model is not intended for use in tasks other than binary text classification. Misuse includes any application that requires multi-class classification or tasks beyond the scope of text classification.
This model inherits biases present in the pre-trained BERT model and the fine-tuning dataset. Users should be cautious of potential biases related to language, context, and dataset-specific characteristics.
Users should evaluate the model on their specific tasks and datasets to ensure it performs as expected. It is recommended to perform bias and fairness checks before deploying the model in production.
import torch
from transformers import BertTokenizer, BertForSequenceClassification
# Load the model and tokenizer
model = BertForSequenceClassification.from_pretrained('Darshan03/AI-Hackathon')
tokenizer = BertTokenizer.from_pretrained('Darshan03/AI-Hackathon')
# Tokenize the input text
inputs = tokenizer("Your text here", return_tensors='pt', padding=True, truncation=True, max_length=128)
# Perform inference
outputs = model(**inputs)
logits = outputs.logits
predicted_class = torch.argmax(logits, dim=1).item()
print(f"Predicted class: {predicted_class}")