diff --git a/src/myontology.py b/src/myontology.py index ff7aec5..7b6b6d2 100644 --- a/src/myontology.py +++ b/src/myontology.py @@ -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