Change ontology limit to 1 term

This commit is contained in:
Aleksey Filippov 2022-03-25 14:49:48 +04:00
parent f462f60e4c
commit ecc8c99ab1

View File

@ -37,7 +37,7 @@ class MyOntology:
match: int = 0
for term in terms:
match = match + self.__find_str_in_list(term.name, nouns)
if match >= len(terms) * 0.5:
if match >= 1:
instances.append(instance)
return instances