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