[~] Refactor

This commit is contained in:
Siarhei Siniak 2021-07-15 10:22:55 +03:00
parent bf612fa067
commit 449385bee1

@ -331,7 +331,7 @@ def kernel_4(
t6.append( t6.append(
dict( dict(
text=o, text=o,
score=t4[0], score=t4[0][0],
) )
) )
pprint.pprint( pprint.pprint(
@ -374,3 +374,9 @@ def kernel_5(
o_2=o_2, o_2=o_2,
input_texts=t1 input_texts=t1
) )
t3 = sorted(
t2['t6'],
key=lambda x: x['score'][0],
)
pprint.pprint(t3)