aboutcode-org / scancode-analyzer

scancode-results-analyzer
4 stars 2 forks source link

Enhance License Expression Suggestion #42

Closed AyanSinhaMahapatra closed 3 years ago

AyanSinhaMahapatra commented 3 years ago

Modify license expression prediction to first count all the expressions, remove unknowns, then select the one with the most occurrences. Now, matched_length is used if there are multiple expressions having the same count.

Signed-off-by: Ayan Sinha Mahapatra ayansmahapatra@gmail.com

pombredanne commented 3 years ago

This requires some clarification in the use of key vs. expressions: IMHO we should never deal with keys in here.

AyanSinhaMahapatra commented 3 years ago

This requires some clarification in the use of key vs. expressions: IMHO we should never deal with keys in here.

Changes made. It uses expressions in place of keys now.