tum-nlp/IDMGSP
Updated • 177 • 9
How to use tum-nlp/IDMGSP-RoBERTa-TRAIN-ABSTRACT with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tum-nlp/IDMGSP-RoBERTa-TRAIN-ABSTRACT") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tum-nlp/IDMGSP-RoBERTa-TRAIN-ABSTRACT")
model = AutoModelForSequenceClassification.from_pretrained("tum-nlp/IDMGSP-RoBERTa-TRAIN-ABSTRACT")