LookupError:
zkn365 opened this issue · comments
LookupError:
Resource averaged_perceptron_tagger not found.
Please use the NLTK Downloader to obtain the resource:
import nltk
nltk.download('averaged_perceptron_tagger')
For more information see: https://www.nltk.org/data.html
Attempted to load taggers/averaged_perceptron_tagger/averaged_perceptron_tagger.pickle
This error can be fixed by mannual download the "averaged_perceptron_tagger" from the
nltk.download() dialog.
or
download "averaged_perceptron_tagger.zip" and put into 'C:\nltk_data'.
Cheers
After I select the right answer I see the following error
149
win
['w', 'i', 'n']
['z', 'b', 'w', 'i', 'n', 'k']
['w', 'i', 'n']
['w', 'i', 'n']
IndexError Traceback (most recent call last)
in
690 page = 3
691 delay = 1
--> 692 correct_match()
693 else:
694 life -= 1
in correct_match()
459 def correct_match():
460 win.fill((255, 255, 255))
--> 461 file_path = [item for item in [item for item in os.listdir(image_dir) if ''.join(correct_ans) in item] if os.path.splitext(item)[0] == ''.join(correct_ans)][0]
462 image_path = os.path.join(image_dir, file_path)
463 im = Image.open(image_path)
IndexError: list index out of range