Downloads · 30 days
6
6% of all-time downloads
teimurjan/legal-clause-classifier
legal-clause-classifier is a text classification model from teimurjan. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Multi-label classifier for legal document clauses. Identifies clause types and associated risk levels.
Downloads · 30 days
6
6% of all-time downloads
All-time downloads
104
Public
Repo size
282 MB
Likes
2
Public
Click a slice to open those files.
.onnx140 MB · 50%
From the Hugging Face model README
Multi-label classifier for legal document clauses. Identifies clause types and associated risk levels.
import { pipeline } from '@huggingface/transformers';
const classifier = await pipeline(
'text-classification',
'teimurjan/legal-clause-classifier',
{ device: 'wasm' }
);
const result = await classifier(
'The Company shall indemnify and hold harmless the Contractor from any claims.'
);
console.log(result);
The model classifies text into 41 legal clause categories including:
Each label includes a risk assessment (high/medium/low) in label_config.json.
MIT