def extract_from_simple_sentence(self, simple_sentence: SimpleSentence): statement_record_list = [] sent_doc = simple_sentence.get_doc() doc_api_name = simple_sentence.api_from statement_record_list.extend( self.extract_for_A_be_jj_np(sent_doc, simple_sentence.get_subject(), simple_sentence.get_predicate(), doc_api_name)) return statement_record_list
def extract_from_simple_sentence(self, simple_sentence: SimpleSentence): statement_record_list = [] sent_doc = simple_sentence.get_doc() doc_api_name = simple_sentence.api_from statement_record_list.extend( self.extract_for_A_is_xxx(sent_doc, simple_sentence.get_subject(), simple_sentence.get_predicate(), doc_api_name)) statement_record_list.extend( self.extract_belong_to_like_category( sent_doc, simple_sentence.get_subject(), simple_sentence.get_predicate(), doc_api_name)) return statement_record_list
def extract_simple_sentence(self, simple_sentence: SimpleSentence): doc = simple_sentence.get_doc() full_doc = simple_sentence.get_full_doc() api_name = simple_sentence.api_from main_predicate = DependencyTreeUtil.get_main_predicate(full_doc)