parserator
parserator copied to clipboard
Change generator to list to allow multiple iterations while labeling
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.