ExactConceptParser can now recognize concepts by their names
This commit is contained in:
@@ -470,3 +470,19 @@ def remove_from_ret_val(sheerka, return_values, concept_key):
|
||||
return_values.remove(item)
|
||||
|
||||
return return_values
|
||||
|
||||
|
||||
def set_is_evaluated(concepts):
|
||||
"""
|
||||
set is_evaluated to True
|
||||
:param concepts:
|
||||
:return:
|
||||
"""
|
||||
if concepts is None:
|
||||
return
|
||||
|
||||
if hasattr(concepts, "__iter__"):
|
||||
for c in concepts:
|
||||
c.metadata.is_evaluated = True
|
||||
else:
|
||||
concepts.metadata.is_evaluated = True
|
||||
|
||||
Reference in New Issue
Block a user