Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddings
Paper • 2202.06671 • Published • 2
How to use malteos/specter-wol with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="malteos/specter-wol") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("malteos/specter-wol")
model = AutoModel.from_pretrained("malteos/specter-wol")# Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("malteos/specter-wol")
model = AutoModel.from_pretrained("malteos/specter-wol")Replicated SPECTER model based on w/o leakage training corpus with seed=0. See Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddings.
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="malteos/specter-wol")