Change ontology limit to 1 term
This commit is contained in:
parent
f462f60e4c
commit
ecc8c99ab1
@ -37,7 +37,7 @@ class MyOntology:
|
|||||||
match: int = 0
|
match: int = 0
|
||||||
for term in terms:
|
for term in terms:
|
||||||
match = match + self.__find_str_in_list(term.name, nouns)
|
match = match + self.__find_str_in_list(term.name, nouns)
|
||||||
if match >= len(terms) * 0.5:
|
if match >= 1:
|
||||||
instances.append(instance)
|
instances.append(instance)
|
||||||
return instances
|
return instances
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user