research_library
Collection
Repository Library model stack mirrored from local research artifacts. • 41 items • Updated
How to use PeytonT/metadata-category-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="PeytonT/metadata-category-classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("PeytonT/metadata-category-classifier")
model = AutoModelForSequenceClassification.from_pretrained("PeytonT/metadata-category-classifier")Predicts arXiv-style subject categories from metadata text.
allenai/scibert_scivocab_uncasedencoderM2T1_metadataThis model is part of the Repository Library stack, a research system for indexing, retrieving, aligning, and reasoning over scientific papers, structured paper content, repositories, and cross-domain links between them.
https://huggingface.co/PeytonT/metadata-category-classifierhttps://huggingface.co/collections/PeytonT/research-library-6a49c589ef4d763f7539b50dhttps://github.com/peytontolbert/research_libraryhttps://github.com/peytontolbert/research_library/blob/main/models/experiments/m2_metadata_category_classifier.jsonhttps://github.com/peytontolbert/research_library/tree/main/modelsThe training inputs for this package were assembled from the following Repository Library data sources:
arxiv_metadata: arXiv metadata records spanning titles, abstracts, authors, and category labels.arxiv_metadatatitle, abstractcategories[0.9, 0.1, 0.0]40008bf16cross_entropy5e-05512128full_finetune1000ddp0accuracy, macro_f1from transformers import AutoModelForSequenceClassification, AutoTokenizer
repo_id = "PeytonT/metadata-category-classifier"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForSequenceClassification.from_pretrained(repo_id)
https://github.com/peytontolbert/research_libraryhttps://huggingface.co/collections/PeytonT/research-library-6a49c589ef4d763f7539b50dPeytonTBase model
allenai/scibert_scivocab_uncased