aboutcode-org / aboutcode-org/scancode-toolkit

Consider using required phrases in license rule for ranking matches instead of filtering

Offen
#3,945 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
improve-license-detection license scan license_clarity_score
Vorherrschende Sprache
Python
Sterne
2.6k
Forks
791
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
5

Beschreibung

Required phrases in license rules are used to filter out matches that do not have these required phrases present.
There are cases where this is filtering too many matches and we would need to systematically re-run a second level "unknown" license detection afterwards.

We should consider using the presence of "required phrases" in a match for ranking instead.
A simple approach is rank matches with required phrases present higher or highest, but not discard the matches that are missing some or all of the required phrases, so that we still return lower scored matches in these edge cases where the match may have been one of a kind and should not have been filtered early even if imperfect.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.