Exemple #1
0
def _if_ea(p1_tags_text_list, executives_flag, analysts_flag, operator_flag,
           first_large_change, n_tags_analysts_potential_names,
           n_tags_executives_potential_names):
    analysts_list_end = first_large_change

    executive_indexs = get_numbers_between_interval(
        n_tags_executives_potential_names, executives_flag + 1, analysts_flag)
    executive_list = get_list_items_by_index(p1_tags_text_list,
                                             executive_indexs)

    analyst_indexs = get_numbers_between_interval(
        n_tags_analysts_potential_names, analysts_flag + 1, analysts_list_end)
    analyst_list = get_list_items_by_index(p1_tags_text_list, analyst_indexs)

    return {"executives": executive_list, "analysts": analyst_list}
Exemple #2
0
def _if_eao(p1_tags_text_list, executives_flag, analysts_flag, operator_flag,
            first_large_change):

    n_tags_executives_potential_names = list(range(len(p1_tags_text_list)))
    n_tags_analysts_potential_names = list(range(len(p1_tags_text_list)))

    executive_indexs = get_numbers_between_interval(
        n_tags_executives_potential_names, executives_flag + 1, analysts_flag)
    executive_list = get_list_items_by_index(p1_tags_text_list,
                                             executive_indexs)
    executive_list = drop_short_strings(executive_list)

    if operator_flag < first_large_change:
        analysts_list_end = operator_flag
    else:
        analysts_list_end = first_large_change

    analyst_indexs = get_numbers_between_interval(
        n_tags_analysts_potential_names, analysts_flag + 1, analysts_list_end)
    analyst_list = get_list_items_by_index(p1_tags_text_list, analyst_indexs)
    analyst_list = drop_short_strings(analyst_list)

    return {"executives": executive_list, "analysts": analyst_list}
Exemple #3
0
def _if_e(p1_tags_text_list, executives_flag, analysts_flag, operator_flag,
          first_large_change):

    n_tags_executives_potential_names = list(range(len(p1_tags_text_list)))
    # n_tags_analysts_potential_names = list(range(len(p1_tags_text_list)))

    executives_list_end = first_large_change

    executive_indexs = get_numbers_between_interval(
        n_tags_executives_potential_names, executives_flag + 1,
        executives_list_end)
    executive_list = get_list_items_by_index(p1_tags_text_list,
                                             executive_indexs)

    return {"executives": executive_list, "analysts": []}