MCPcopy Create free account
hub / github.com/DataArcTech/ToG / del_unknown_entity

Function del_unknown_entity

ToG/utils.py:139–143  ·  view source on GitHub ↗
(entity_candidates)

Source from the content-addressed store, hash-verified

137
138
139def del_unknown_entity(entity_candidates):
140 if len(entity_candidates)==1 and entity_candidates[0]=="UnName_Entity":
141 return entity_candidates
142 entity_candidates = [candidate for candidate in entity_candidates if candidate != "UnName_Entity"]
143 return entity_candidates
144
145
146def clean_scores(string, entity_candidates):

Callers 1

entity_scoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected