yanmtt icon indicating copy to clipboard operation
yanmtt copied to clipboard

To avoid StopIteration error. Change from while-loop to for-loop.

Open hour opened this issue 8 months ago • 0 comments

While-loop here stop when there is no more elements from the generator. next(monolingual_generator) will raise StopIteration when there is no more element to return. Using for-loop to avoid StopIteration.

hour avatar Jul 03 '24 04:07 hour