Loading process_srl.py +0 −2 Original line number Diff line number Diff line Loading @@ -132,8 +132,6 @@ for n, gr in df.groupby(['bias', 'name_bias']): sorted_verbs = counts.sort_values(by="normalized", ascending=False).head(N) sorted_verbs.to_csv("frequent_verbs/{}{}.csv".format(n_edit, '_arg' if ARG else ''), sep="\t") binned[n] = sorted_verbs.index binned[n + 'across'] = sorted_verbs.across binned[n + 'across'] = sorted_verbs.across print(binned.head(N)) binned.to_csv('frequent_verbs/most_freq_verbs{}.csv'.format('_arg' if ARG else '')) Loading Loading
process_srl.py +0 −2 Original line number Diff line number Diff line Loading @@ -132,8 +132,6 @@ for n, gr in df.groupby(['bias', 'name_bias']): sorted_verbs = counts.sort_values(by="normalized", ascending=False).head(N) sorted_verbs.to_csv("frequent_verbs/{}{}.csv".format(n_edit, '_arg' if ARG else ''), sep="\t") binned[n] = sorted_verbs.index binned[n + 'across'] = sorted_verbs.across binned[n + 'across'] = sorted_verbs.across print(binned.head(N)) binned.to_csv('frequent_verbs/most_freq_verbs{}.csv'.format('_arg' if ARG else '')) Loading