Skip to content

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

Open
hour wants to merge 1 commit into
prajdabre:mainfrom
hour:main
Open

To avoid StopIteration error. Change from while-loop to for-loop.#66
hour wants to merge 1 commit into
prajdabre:mainfrom
hour:main

Conversation

@hour

@hour hour commented Jul 3, 2024

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant