Skip to content

Add model prediction and rule integration - #3

Open
Kaushik-Kumar-CEG wants to merge 4 commits into
gsoc/training-pipelinefrom
gsoc/prediction-injection
Open

Add model prediction and rule integration#3
Kaushik-Kumar-CEG wants to merge 4 commits into
gsoc/training-pipelinefrom
gsoc/prediction-injection

Conversation

@Kaushik-Kumar-CEG

@Kaushik-Kumar-CEG Kaushik-Kumar-CEG commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Adds model prediction and safe rule integration on top of #2.

  • Loads validated local models or revision-pinned Hugging Face models.
  • Selects eligible ScanCode rules and validates predicted phrases with ScanCode APIs.
  • Rejects ambiguous repeated text and conflicting phrases.
  • Prepares complete rule updates before mutation and writes each changed rule atomically.
  • Adds the installed add-model-required-phrases command.

This replaces the earlier implementation explored in ScanCode Toolkit PR #5262.

Signed-off-by: Kaushik Kumar <kaushikrjpm10@gmail.com>
Signed-off-by: Kaushik <kaushikrjpm10@gmail.com>
Signed-off-by: Kaushik <kaushikrjpm10@gmail.com>
Signed-off-by: Kaushik <kaushikrjpm10@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant