Text Classification
Transformers
Safetensors
English
distilbert
biomedical
citation-detection
scientific-text
text-embeddings-inference
Run this model with HF Jobs
Run vgainullin/citation_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/vgainullin/citation_classifier. Ask me which dataset to train on, then push the fine-tuned model to a new private 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/vgainullin/citation_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 vgainullin/citation_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vgainullin/citation_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="vgainullin/citation_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("vgainullin/citation_classifier") model = AutoModelForSequenceClassification.from_pretrained("vgainullin/citation_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Citation Classifier
A DistilBERT-based binary classifier that identifies sentences in biomedical text that require citations.
Model Description
This model takes a sentence from a scientific/biomedical article and predicts whether it should contain a citation (1) or not (0). It is a key component of the pubciter pipeline for automated citation generation.
Base model: distilbert-base-uncased
Task: Binary text classification
Domain: Biomedical / scientific literature
Variants
- coteaching/ β Trained with co-teaching strategy for noise-robust learning
- self_filtering/ β Trained with self-filtering for label noise reduction
- last-checkpoint/ β Standard training final checkpoint
Training
- Dataset: vgainullin/xciting_data β PubMed sentences annotated for citation presence
- Samples: 100k balanced (50k cited, 50k uncited)
- Epochs: 3
- Learning rate: 1e-6
- Batch size: 16 (train), 64 (eval)
- Optimizer: AdamW
Usage
Citation
If you use this model, please cite:
- Downloads last month
- -
Dataset used to train vgainullin/citation_classifier
Viewer β’ Updated β’ 816k β’ 24