DistilBERT Goodreads Genre Classifier
This model classifies book reviews into 8 genres using the UCSD Goodreads dataset.
Model Description
- Base Model:
distilbert-base-cased - Task: Multi-class text classification
- Number of Labels: 8
Supported Genres:
- Poetry
- Children
- Comics & Graphic
- Fantasy & Paranormal
- History & Biography
- Mystery, Thriller & Crime
- Romance
- Young Adult
Usage
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="JD45-d/distilbert-goodreads-genre-classifier"
)
result = classifier("This was the most romantic book I have ever read!")
print(result)
- Downloads last month
- 63