Instructions to use hur03/checkit-contract-classifier-core-synthetic-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hur03/checkit-contract-classifier-core-synthetic-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="hur03/checkit-contract-classifier-core-synthetic-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("hur03/checkit-contract-classifier-core-synthetic-v1") model = AutoModelForSequenceClassification.from_pretrained("hur03/checkit-contract-classifier-core-synthetic-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
CheckIt contract clause classifier: clean core + synthetic v1
This is a 10-label Korean contract-clause classifier fine-tuned from
klue/roberta-base revision
02f94ba5e3fcb7e2a58a390b8639b0fac974a8da.
It uses sigmoid scores and the 0.5 threshold in labels.json for each label.
Inputs are truncated at 256 tokens. Multiple labels may be returned.
Training used 3,470 clean core clauses and 240 authored synthetic clauses. Validation and test contain only clean core clauses, split by document group with exact duplicate text removed. The synthetic annotations have not been independently reviewed.
| Training set | Test micro F1 | Test macro F1 | Test exact match |
|---|---|---|---|
| Clean core only | 0.838 | 0.762 | 80.5% |
| Clean core + 240 synthetic clauses (this model) | 0.858 | 0.829 | 83.6% |
The test contains 446 core clauses. Both comparison models used the same KLUE-RoBERTa starting revision, two training epochs, and validation macro F1 for checkpoint selection. These scores are from one grouped split and are not legal-judgment accuracy or a guarantee on real contracts. Some labels have small test support. The training clauses are not included in this model repository.
Use AutoModelForSequenceClassification and AutoTokenizer from
transformers, then apply sigmoid to the logits. The order of the ten
outputs and thresholds is in labels.json.
- Downloads last month
- 31
Model tree for hur03/checkit-contract-classifier-core-synthetic-v1
Base model
klue/roberta-base