Transformers How to use timpal0l/xlm-roberta-base-faq-extractor with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="timpal0l/xlm-roberta-base-faq-extractor") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("timpal0l/xlm-roberta-base-faq-extractor")
model = AutoModelForSequenceClassification.from_pretrained("timpal0l/xlm-roberta-base-faq-extractor")