This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
forked from ra1nb0rn/cpe_search
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add weighing of terms for cosine similarity
For the cosine similarity comparison between user query and CPE entries, an exponential decay function is now used for assigning decreasing weights to terms according to their position in a CPE entry. This has the effect that terms that appear later in a CPE entry contribute less to the comparison. It solves a general problem, wherein wrong software CPEs were returned if only one word between user query and CPE entry matched, for example.
- Loading branch information
Showing
2 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters