vgainullin/xciting_data
Viewer • Updated • 816k • 229
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") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("vgainullin/citation_classifier")
model = AutoModelForSequenceClassification.from_pretrained("vgainullin/citation_classifier")A DistilBERT-based binary classifier that identifies sentences in biomedical text that require citations.
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
If you use this model, please cite: