parserator icon indicating copy to clipboard operation
parserator copied to clipboard

Change generator to list to allow multiple iterations while labeling

Open felixzhuologist opened this issue 9 years ago • 0 comments

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.

felixzhuologist avatar Jun 10 '15 01:06 felixzhuologist