Downloads · 30 days
12
44% of all-time downloads
rahul004/News-Categorizer
News-Categorizer is a text classification model from rahul004. 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.
- Developed by: Rahul A Gowda - Model type: Encoder Based Model - License: apache-2.0 - Finetuned from model [optional]: Distledbert-base-uncased
Downloads · 30 days
12
44% of all-time downloads
All-time downloads
27
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Use the code below to get started with the model.
The Model has been fine-tuned on "AG-news" dataset
Total number of epochs: 4
Training Loss: 0.124300
Validation Loss: 0.920658
Accuracy: 0.920658
F1: 0.92054
from transformers import pipeline
pipe = pipeline("text-classification", model="rahul004/News-Categorizer")
---------------x-----------x------------x-------------x------------------
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("rahul004/News-Categorizer")
model = AutoModelForSequenceClassification.from_pretrained("rahul004/News-Categorizer")