aboutcode-org / aboutcode-org/scancode-toolkit

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

未關閉
#3,945 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
improve-license-detection license scan license_clarity_score
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。