aboutcode-org / aboutcode-org/scancode-toolkit

Add an attribute for `extra words`

Offen
#2,349 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @AyanSinhaMahapatra Auf GitHub ansehen
license scan new feature scancode-results-analyzer
Vorherrschende Sprache
Python
Sterne
2.6k
Forks
791
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
5

Beschreibung

## Short Description

Adding a new integer attribute `extra_words` to each matched license.

## Select Category

- [x] Enhancement
- [ ] Add License/Copyright
- [ ] Scan Feature
- [ ] Packaging
- [ ] Documentation
- [ ] Expand Support
- [ ] Other

## **Describe the Update**

There are two cases when calculating score,

1. If `score` == `match_coverage` * `rule_Relevance`, then there are no
extra words in that license match.
2. If `score` != `match_coverage` * `rule_Relevance`,
then there are extra words in that match. (all the words in the rule are present, but there are more words)

In the second case, the score is decreased based on how much extra words is there, and presently
this isn't returned.

## **How This Feature will help you/your organization**
Will help in `scancode-results-analyzer`

## **Can you help with this Feature**
Yes.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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