From ecc8c99ab1c955892e09878d810895dd70b08a24 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Fri, 25 Mar 2022 14:49:48 +0400 Subject: [PATCH] Change ontology limit to 1 term --- src/myontology.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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