I'd like to challenge to this Vision-Dialog Competition introduced on the following link:
https://visualdialog.org/challenge/2018
The link provides publicly open train dataset which has around 300MB of size and its format is JSON.
I just want to read few lines of this file so that I could just check which dialogues have been rounded between human and AI.
Is there any good way just to read few lines of JSON file using viewer or using python interaction shell- such as jupyter? Any medium is just fine.
--
I had tired mpu but it returns following error:
--------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
<ipython-input-17-dfebad8ac65a> in <module>()
----> 1 data = mpu.io.read("C:/Users/syyun/Downloads/visdial_0.9_train/visdial_0.9_train.json")
c:\users\syyun\appdata\local\programs\python\python36-32\lib\site-packages\mpu\io.py in read(filepath, **kwargs)
83 elif filepath.lower().endswith('.json'):
84 with open(filepath) as data_file:
---> 85 data = json.load(data_file, **kwargs)
86 return data
87 elif filepath.lower().endswith('.pickle'):
c:\users\syyun\appdata\local\programs\python\python36-32\lib\json\__init__.py in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
294
295 """
--> 296 return loads(fp.read(),
297 cls=cls, object_hook=object_hook,
298 parse_float=parse_float, parse_int=parse_int,
downloadc:\users\syyun\appdata\local\programs\python\python36-32\lib\encodings\cp1252.py in decode(self, input, final)
21 class IncrementalDecoder(codecs.IncrementalDecoder):
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
25 class StreamWriter(Codec,codecs.StreamWriter):