Skip to content

Commit

Permalink
removed entity label
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthasaikalluri committed Sep 16, 2024
1 parent 801745e commit 8f0a706
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/chunkid_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def remove_duplicate_nodes(nodes,property="element_id"):
for node in nodes:
element_id = node[property]
if element_id not in seen_element_ids:
if "labels" in node.keys():
labels = set(node["labels"])
labels.discard("__Entity__")
node["labels"] = list(labels)
unique_nodes.append(node)
seen_element_ids.add(element_id)

Expand Down

0 comments on commit 8f0a706

Please sign in to comment.