Fix VERB/NOUN rules

This commit is contained in:
Aleksey Filippov 2023-06-02 20:37:57 +04:00
parent f1c4f5ad41
commit 8312150a62

View File

@ -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]: