Legal Document Classifier

This is a fine-tuned BERT-based model for classifying legal documents into contract, amendment, or other.

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification

model = AutoModelForSequenceClassification.from_pretrained("karthikvarunn/legal_document_classifier")
tokenizer = AutoTokenizer.from_pretrained("karthikvarunn/legal_document_classifier")

inputs = tokenizer("Your document text here...", return_tensors="pt")
outputs = model(**inputs)
Downloads last month
11
Safetensors
Model size
67M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support