aboutcode-org / aboutcode-org/scancode-toolkit

Add an attribute for `extra words`

オープン
#2,349 コメント 1 件 リアクション 0 件 担当者 1 名 @AyanSinhaMahapatra が担当を希望しています GitHub で見る
license scan new feature scancode-results-analyzer
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
5

説明

## 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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。