File "C:\Users\...\AppData\Local\Programs\Python\Python312\Lib\site-packages\onmt\transforms\misc.py", line 56, in apply
or len(example["tgt"]) > self.tgt_seq_length - 2
^^^^^^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
Please read the README of the project, we are no longer supporting OpenNMT-py and switching to https://github.com/eole-nlp/eole
I suggest you to switch to eole if you intend to get support in the future.
Without this change I'm getting a crash e.g.