Add model-predicted required phrases to sample rules - #5330
Open
Kaushik-Kumar-CEG wants to merge 1 commit into
Open
Kaushik-Kumar-CEG wants to merge 1 commit into
Kaushik-Kumar-CEG wants to merge 1 commit into
Conversation
Signed-off-by: Kaushik Kumar <kaushikrjpm10@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds reviewed required phrases to ten ScanCode rules using the published model
I fixed a varied set of 30 eligible, unmarked rules before prediction. The set included common licenses, less common licenses, exceptions, composites and longer notices. None of the rules matched the final train, validation or test data
The model returned predictions for 22 rules.I kept ten clear phrases
Changes
agpl-3.0-plus_82.RULE:agpl 3plusidentifies the AGPL versioned tag.apache-2.0_501.RULE:Apache Licenceanchors the short Apache notice.cc-by-nc-nd-2.0_23.RULE: the full title and version distinguish this CC variant.cc-by-sa-4.0_68.RULE: the variant and version identify CC BY-SA 4.0.cpol-1.02_10.RULE: the full name and version identify CPOL 1.02.etalab-2.0_3.RULE: the French title and version identify Etalab 2.0.gpl-2.0_with_gcc-linking-exception-2.0_1.RULE: the phrase includes both GPL 2.0 and the GCC exception.gpl-3.0-plus_230.RULE: the phrase includes GPL v3 and the later-version option.lgpl-2.1-plus_167.RULE: the phrase includes LGPL 2.1 and the later-version option.postgresql_25.RULE: the clause ties modifications to the PostgreSQL license terms.Each diff only adds
source: ml_modeland the reviewed{{...}}marker.Validation
git diff --checkpassed.Prediction command:
add-model-required-phrases --rules-dir copied-rules --predict-only --json predictions.json