Stanza fails for some inputs

import argostranslate.package, argostranslate.translate

from_code = "en"
to_code = "de"

# Translate
installed_languages = argostranslate.translate.get_installed_languages()
from_lang = list(filter(
	lambda x: x.code == from_code,
	installed_languages))[0]
to_lang = list(filter(
	lambda x: x.code == to_code,
	installed_languages))[0]
translation = from_lang.get_translation(to_lang)
# translatedText = translation.translate('this test try and test the game not the player they are nearly dead. | tetser \n|') # not working
# translatedText = translation.translate('this is a test try and test the game not the player they are dead.| tetser \n|') # not working
# translatedText = translation.translate('this is a test try it out and let me know how it goes, works?| dlfkgh \n|') # not working
# translatedText = translation.translate('this is a test try it out and let me know how it goes, works?| dlfkgh7 \n|') # WORKING
# translatedText = translation.translate('this is a test try it out and let me know how it goes, works?| dlfkgh \n|') # not working
# translatedText = translation.translate('this is a test try it out and let me know how it goes, works?| aaa\n|') # not working
translatedText = translation.translate('try it out and let me know how it goes, works?| aaa\n|') # not working
# translatedText = translation.translate('try it out let me know how it goes, works?| aaa\n|') # WORKING
# translatedText = translation.translate('try it out let me know how it goes, work?| aaa\n|') # WORKING
print(translatedText)
It seems to get lost here: stanza/models/tokenize/utils.py
line 90: pred = np.argmax(trainer.predict(batch), axis=2)