Run this model with HF Jobs
Run Chrisneverdie/OnlySports_Classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Chrisneverdie/OnlySports_Classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Chrisneverdie/OnlySports_Classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Chrisneverdie/OnlySports_Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Chrisneverdie/OnlySports_Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Chrisneverdie/OnlySports_Classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Chrisneverdie/OnlySports_Classifier") model = AutoModelForSequenceClassification.from_pretrained("Chrisneverdie/OnlySports_Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Sports Text Classifier
Overview
This Sports Text Classifier is a crucial component of the OnlySports Dataset creation pipeline. It's designed to accurately identify and extract sports-related documents from a large corpus of web content.
Model Architecture
- Base model: Snowflake-arctic-embed-xs
- Additional layer: Binary classification layer
- Training: 10 epochs with a learning rate of 3e-4
Performance
The classifier achieves exceptional accuracy in distinguishing between sports and non-sports documents:
Training Data
The classifier was trained on a balanced dataset of sports and non-sports content:
- 64k samples from seven prestigious sports websites
- 36k non-sports text documents classified using GPT-3.5
Usage
This classifier is primarily used in the creation of the OnlySports Dataset, presented in this paper. It can be applied to filter large text corpora for sports-related content with high accuracy.
Integration
The classifier is integrated into a MapReduce architecture for efficient processing of large-scale datasets. It's used in conjunction with URL keyword filtering to create a comprehensive sports text dataset.
Related Projects
This classifier is part of the larger OnlySports collection, which includes:
For more information, check our paper.
- Downloads last month
- 15
Model tree for Chrisneverdie/OnlySports_Classifier
Base model
Snowflake/snowflake-arctic-embed-xs