Project

General

Profile

Task #1561

Modification in tagging_utils.py such that doc_ids with sim_score equal to the kp_doc_id are not removed

Added by Nandini Bansal over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
08/27/2021
Due date:
% Done:

90%

Estimated time:
3.00 h

Description

We recently made changes in the code that makes sure that if KP is linked to the same document in which is tagged, the KP is only tagged if there exists a doc_id with a higher similarity score. But we saw some cases where KPs were linked to different doc_ids with the same score as the self-link. But due to strict greater than condition, those KPs are not getting tagged. We need to change this and make sure that doc_ids with the same sim_score as self-link are retained.

The changes will have to be made in the update_doc_id_score_list function from tagging_utils.py.

You can use "C-API Reference.txt" for testing your changes.

Example added in attachments:


Files

Also available in: Atom PDF