transformer_rankers.utils.utils

Functions

acumulate_l1_by_l2(l1, l2)

Splits a list (l1) using the shape of l2.

acumulate_list(l, acum_step)

Splits a list every acum_step and generates a resulting matrix

acumulate_list_multiple_relevant(l)

Splits a list that has variable number of labels 1 first followed by N 0.

from_df_to_list_without_nans(df)