aboutcode-org / aboutcode-org/scancode-toolkit

Add an attribute for `extra words`

Đang mở
#2,349 1 bình luận 0 reaction 1 người được giao Được @AyanSinhaMahapatra nhận Xem trên GitHub
license scan new feature scancode-results-analyzer
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.