Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change generator to list to allow multiple iterations while labeling #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

felixzhuologist
Copy link

After iterating through and printing each token in preds (which is a generator), preds is now empty. This means that if the user provides input 'n', manualTagging() is given an empty generator and so essentially does nothing except return an empty list. To fix this, I changed preds to be a list so that it can be iterated over multiple times.

Feel free to suggest/code up a different fix, I just thought that I'd point out the bug.

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