Text Classification
Transformers
Safetensors
English
roberta
contracts
legal-nlp
clause-classification
data-licensing
Synthetic
text-embeddings-inference
Instructions to use aitrainingdatabroker/contract-clause-type-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aitrainingdatabroker/contract-clause-type-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="aitrainingdatabroker/contract-clause-type-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("aitrainingdatabroker/contract-clause-type-classifier") model = AutoModelForSequenceClassification.from_pretrained("aitrainingdatabroker/contract-clause-type-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download scores.json from aitrainingdatabroker/contract-clause-type-classifier: direct link, hf CLI and curl.
- Browser
- Download file 805 Bytes
-
https://huggingface.co/aitrainingdatabroker/contract-clause-type-classifier/resolve/main/scores.json
- Command line
-
hf download hf://aitrainingdatabroker/contract-clause-type-classifier/scores.json
-
curl -L -o scores.json https://huggingface.co/aitrainingdatabroker/contract-clause-type-classifier/resolve/main/scores.json
805 Bytes
| { | |
| "metric": "accuracy and macro F1", | |
| "accuracy": 0.726, | |
| "macro_f1": 0.711, | |
| "per_label": { | |
| "audit_and_deletion": { | |
| "f1": 0.533, | |
| "support": 24 | |
| }, | |
| "confidentiality": { | |
| "f1": 1.0, | |
| "support": 22 | |
| }, | |
| "exclusivity": { | |
| "f1": 0.683, | |
| "support": 23 | |
| }, | |
| "indemnity": { | |
| "f1": 0.96, | |
| "support": 24 | |
| }, | |
| "ip_and_ownership": { | |
| "f1": 0.9, | |
| "support": 22 | |
| }, | |
| "payment": { | |
| "f1": 0.657, | |
| "support": 24 | |
| }, | |
| "term_and_renewal": { | |
| "f1": 0.957, | |
| "support": 24 | |
| }, | |
| "termination": { | |
| "f1": 0.0, | |
| "support": 23 | |
| } | |
| }, | |
| "base_model": "distilroberta-base", | |
| "train_rows": 376, | |
| "test_rows": 186, | |
| "epochs": 6, | |
| "device": "cuda" | |
| } | |