You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue with the translate_stream method of the EasyNMT class: If the number of input texts ('n_texts') is not divisible by the chunk_size (i.e. without remainder), translate_stream only yields the first (n_texts // chunk_size) * chunk_size translations.
Hi there,
thanks for providing this great package!
I have encountered an issue with the
translate_stream
method of the EasyNMT class: If the number of input texts ('n_texts') is not divisible by thechunk_size
(i.e. without remainder),translate_stream
only yields the first(n_texts // chunk_size) * chunk_size
translations.A minimal working example can be found here: https://colab.research.google.com/drive/1coVyCXc8jnPdHVcFHaVEsTfv1KfhGkvm?usp=sharing
The text was updated successfully, but these errors were encountered: