DOsinga / deep_learning_cookbook

Deep Learning Cookbox
Apache License 2.0
689 stars 338 forks source link

8.3 NameError: name 'pairs' is not defined #45

Open hpharmsen opened 5 years ago

hpharmsen commented 5 years ago

In line for a in pairs.keys():

You mean to use the pairs object from recipe 8.1?

mikechen66 commented 4 years ago

The pairs is recurrently defined. It includes token_counts. It is a persistent error. It is hard to correct. I think that only Douwe can correct it.

Generating data...


NameError Traceback (most recent call last)

in 3 seen = set() 4 print('Generating data...') ----> 5 for a in pairs.keys(): 6 if '_' in a or '-' in a: 7 continue NameError: name 'pairs' is not defined