Downloads · 30 days
7
8% of all-time downloads
Mitchins/book-genre-v5-title-author
book-genre-v5-title-author is a text classification model from Mitchins. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This package contains a weak title+author genre classifier intended for rough corpus segmentation, triage, and candidate labeling of raw book libraries.
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
88
Public
Parameters
70.8M
286 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors283 MB · 96%
From the Hugging Face model README
This package contains a weak title+author genre classifier intended for rough corpus segmentation, triage, and candidate labeling of raw book libraries.
IMPORTANT: This is not a ground-truth model. It is designed to operate on minimal metadata (Title and Author) to provide broad categorizations when rich descriptions or human curation are unavailable.
Title and Author.Based on validation audits:
abstain or ambiguous_bucket decision.Do not overwrite existing curated metadata without review.
Run a quick test on a single title and author:
python inference.py --title "Dune" --author "Frank Herbert"
Score a JSONL or CSV file of books:
python batch_infer.py --input example_inputs.jsonl --output predictions.jsonl --batch-size 64
Scan a local folder tree of ebooks, infer titles/authors from paths, and generate a classification manifest:
python segment_disk_corpus.py --root /path/to/books --output manifest.jsonl --batch-size 64
transformers>=4.20.0torch>=1.10.0pandastqdm