Skip to content

Instantly share code, notes, and snippets.

@a7v8x
Created May 5, 2020 19:00
Show Gist options
  • Save a7v8x/c9ddf91da9331db7ac1c068c65c0a359 to your computer and use it in GitHub Desktop.
Save a7v8x/c9ddf91da9331db7ac1c068c65c0a359 to your computer and use it in GitHub Desktop.
for review, label in tfds.as_numpy(ds_train.take(5)):
print('review', review.decode()[0:50], label)
<<
review This was an absolutely terrible movie. Don't be lu 0
review I have been known to fall asleep during films, but 0
review Mann photographs the Alberta Rocky Mountains in a 0
review This is the kind of film for a snowy Sunday aftern 1
review As others have mentioned, all the women that go nu 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment