How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("feature-extraction", model="allenai/specter")
# Load model directly
from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("allenai/specter")
model = AutoModel.from_pretrained("allenai/specter")
Quick Links

SPECTER

SPECTER is a pre-trained language model to generate document-level embedding of documents. It is pre-trained on a powerful signal of document-level relatedness: the citation graph. Unlike existing pretrained language models, SPECTER can be easily applied to downstream applications without task-specific fine-tuning.

If you're coming here because you want to embed papers, SPECTER has now been superceded by SPECTER2. Use that instead.

Paper: SPECTER: Document-level Representation Learning using Citation-informed Transformers

Original Repo: Github

Evaluation Benchmark: SciDocs

Authors: Arman Cohan, Sergey Feldman, Iz Beltagy, Doug Downey, Daniel S. Weld

Downloads last month
16,015
Inference Providers NEW

Model tree for allenai/specter

Finetunes
3 models

Spaces using allenai/specter 17

Paper for allenai/specter