Exploration-Lab/IL-TUR
Viewer • Updated • 484k • 767 • 18
How to use Sohal11/case-prediction-v1 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Sohal11/case-prediction-v1") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Sohal11/case-prediction-v1")
model = AutoModelForSequenceClassification.from_pretrained("Sohal11/case-prediction-v1")Base model
nlpaueb/legal-bert-base-uncased