Exemple #1
0
def _pre_process_values(row):
    row['ner_extracted_values'] = _get_entities_local(row['question'])

    extracted_values = pre_process(row)

    row['values'] = match_values_in_database(row['db_id'], extracted_values)

    return row
def _pre_process_values(row):
    # ner_results = remote_named_entity_recognition(row['question'])
    # row['ner_extracted_values'] = ner_results['entities']

    extracted_values = pre_process(row)

    row['values'] = match_values_in_database(row['db_id'], extracted_values)

    return row
Exemple #3
0
def _pre_process_values(row):
    # ner_results = remote_named_entity_recognition(row['question'])
    # row['ner_extracted_values'] = ner_results['entities']

    extracted_values = pre_process(row)
    row['values'] = match_values_in_database(row['db_id'], extracted_values)
    # hook call
    my_vals = value_from_question(row['db_id'], row['question_toks'],
                                  row['values'])
    row['values'] = list(set(my_vals + row['values']))

    return row