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

pipe = pipeline("text-classification", model="matthewleechen/scientist_MP_classifier")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("matthewleechen/scientist_MP_classifier")
model = AutoModelForSequenceClassification.from_pretrained("matthewleechen/scientist_MP_classifier", device_map="auto")
Quick Links

This is a fine-tuned XLM-RoBERTa-large classifier trained to identify whether historical MPs in the British Parliament were scientists, anthropologists, explorers, or geographers, or came from such families.

Downloads last month
5
Safetensors
Model size
0.6B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support