Add script to extract required phrases from rule files - #5105
Add script to extract required phrases from rule files#5105Kaushik-Kumar-CEG wants to merge 1 commit into
Conversation
|
@AyanSinhaMahapatra ready for review when you get a chance. ill make the follow up changes to script as well |
pombredanne
left a comment
There was a problem hiding this comment.
@Kaushik-Kumar-CEG why not reusing existing code for that https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode like in
? this script feels redundant work, and it also is missing tests.|
thanks for the review @pombredanne
skipping on the redundancy, you're right. dropping the local regex in the next commit and using Ill add the required tests once feature commits lands. thanks :) |
91e2635 to
c70da63
Compare
82612c0 to
2017f96
Compare
Build BIOES training records from eligible annotated license rules and split them deterministically with the validated hybrid strategy. Add focused tests for extraction, labeling, exclusions, splitting, and command output. References aboutcode-org#5077 Signed-off-by: Kaushik Kumar <kaushikrjpm10@gmail.com>
2017f96 to
fa2c593
Compare
references #5077
script that extracts annotated rules (those with
{{ }}markers) into a BIOES-labeled JSONL dataset for NER model trainingWhat it does:
.RULEfiles, skipsis_required_phraserulesrequired_phrase_splitterand generates BIOES labels from markersUsage:
Tasks
disclosure : used Claude to help review and clean up few bugs in script