From 8312150a6264f7fa10a8023dd24398f1e49444d7 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Fri, 2 Jun 2023 20:37:57 +0400 Subject: [PATCH] Fix VERB/NOUN rules --- src/nlp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nlp.py b/src/nlp.py index 2ebff1c..1600f56 100644 --- a/src/nlp.py +++ b/src/nlp.py @@ -86,7 +86,7 @@ class NLP: def __get_verb_noun(self, tree: ParseTree) -> List[str]: terms: List[str] = [] terms.extend(self.__get_terms_by_template(tree, 'VERB/NOUN', True)) - terms.extend(self.__get_terms_by_template(tree, 'NOUN/VERB', True)) + terms.extend(self.__get_terms_by_template(tree, 'NOUN/VERB')) return terms def __get_single_terms_by_template(self, tree: ParseTree, template: List[str]) -> List[str]: