Downloads · 30 days
8
13% of all-time downloads
Kaushik-Kumar-CEG/scancode-required-phrases-deberta-bioes-crf-hardened
scancode-required-phrases-deberta-bioes-crf-hardened is a token classification model from Kaushik-Kumar-CEG. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
This model predicts candidate required phrases in ScanCode license rules.
Downloads · 30 days
8
13% of all-time downloads
All-time downloads
61
Public
Parameters
434M
1.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 99%
From the Hugging Face model README
This model predicts candidate required phrases in ScanCode license rules.
Required phrases help prevent weak or partial rule matches from producing false positive license detections. Predictions must pass ScanCode validation and should be reviewed before they are added to rules.
microsoft/deberta-v3-large64a8c8eab3e352a784c658aef62be1662607476fO, B-REQ, I-REQ, E-REQ, S-REQ11215925b0f9b64cfcfbbb5492b52d6aeb5a572bThe model was trained on required phrases extracted from ScanCode license rules.
| Split | Records | Effective records |
|---|---|---|
| Train | 8,316 | 8,265 |
| Validation | 1,048 | 1,044 |
| Test | 1,014 | 1,004 |
The dataset uses a hybrid split. Common license expressions may appear in more than one split through different rule identifiers. Rare expressions remain in one split. This is not a fully unseen license evaluation.
The model was trained for eight epochs with FP32 precision, gradient accumulation, 8-bit AdamW, a fixed seed of 42, and best checkpoint selection using validation strict span F1.
| Metric | Validation | Test |
|---|---|---|
| Strict span F1 | 0.9008 | 0.8766 |
| Precision | 0.8981 | 0.8748 |
| Recall | 0.9035 | 0.8784 |
| Exact rule match | 0.8563 | 0.8197 |
| Invalid BIOES paths | 0 | 0 |
The test split was evaluated once after checkpoint selection and must not be used for further tuning.
Install the required phrases package from the reviewed commit:
python -m pip install \
"scancode-required-phrases[inference] @ git+[https://github.com/aboutcode-org/scancode-required-phrases.git@d6456afe13407ca20b21d7957903f65c007393d4](https://github.com/aboutcode-org/scancode-required-phrases.git@d6456afe13407ca20b21d7957903f65c007393d4)"
Run read only prediction:
add-model-required-phrases --rule path/to/example.RULE --predict-only
Run interactive review:
add-model-required-phrases --rule path/to/example.RULE
After the package is published, the installation command will become:
python -m pip install "scancode-required-phrases[inference]"
The repository includes the full weights, tokenizer, training configuration, artifact hashes, reproducibility manifest, and publication marker.
See run_manifest.json and SUCCESS.json for the exact configuration and file hashes.
The fine tuned model weights and model specific files are released under the Apache License 2.0.
The base microsoft/deberta-v3-large model is MIT licensed and remains subject to its original license and attribution.