Fix VERB/NOUN rules
This commit is contained in:
parent
f1c4f5ad41
commit
8312150a62
@ -86,7 +86,7 @@ class NLP:
|
|||||||
def __get_verb_noun(self, tree: ParseTree) -> List[str]:
|
def __get_verb_noun(self, tree: ParseTree) -> List[str]:
|
||||||
terms: List[str] = []
|
terms: List[str] = []
|
||||||
terms.extend(self.__get_terms_by_template(tree, 'VERB/NOUN', True))
|
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
|
return terms
|
||||||
|
|
||||||
def __get_single_terms_by_template(self, tree: ParseTree, template: List[str]) -> List[str]:
|
def __get_single_terms_by_template(self, tree: ParseTree, template: List[str]) -> List[str]:
|
||||||
|
Loading…
Reference in New Issue
Block a user