Skip to content

Instantly share code, notes, and snippets.

@martinthenext
Last active January 25, 2019 14:47
Show Gist options
  • Save martinthenext/8f1954d6f3d5dc03060f6d1e521d89df to your computer and use it in GitHub Desktop.
Save martinthenext/8f1954d6f3d5dc03060f6d1e521d89df to your computer and use it in GitHub Desktop.
import json
with open('data/train-v2.0.json') as squad_file:
squad = json.load(squad_file)
context = squad['data'][3]['paragraphs'][3]['context']
context
'''Before the release of iOS 5, the iPod branding was used for the media player
included with the iPhone and iPad, a combination of the Music and Videos apps on
the iPod Touch. As of iOS 5, separate apps named "Music" and "Videos" are
standardized across all iOS-powered products. While the iPhone and iPad have
essentially the same media player capabilities as the iPod line, they are generally
treated as separate products. During the middle of 2010, iPhone sales overtook
those of the iPod.'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment