Downloads · 30 days
2
9% of all-time downloads
23f3004132/smart-mcq-textcnn
smart-mcq-textcnn is a text classification model from 23f3004132. Use it when you need a label for a piece of text.
Custom TextCNN model for MCQ solving. 5 options (A/B/C/D/E) mein se sahi answer predict karta hai.
Downloads · 30 days
2
9% of all-time downloads
All-time downloads
23
Public
Repo size
16.2 MB
Likes
0
Public
Click a slice to open those files.
.pt16.2 MB · 100%
From the Hugging Face model README
Custom TextCNN model for MCQ solving. 5 options (A/B/C/D/E) mein se sahi answer predict karta hai.
best_model.pt — Trained model weightstextcnn_config.json — Model configurationtextcnn_model_code.py — Model class codeimport torch
from transformers import AutoTokenizer
from textcnn_model_code import CustomTextCNN
# Tokenizer
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
vocab_size = tokenizer.vocab_size
# Model
model = CustomTextCNN(vocab_size=vocab_size)
model.load_state_dict(torch.load("best_model.pt", map_location="cpu"))
model.eval()