getting original questions
qa/wikipedia-train.json
Traceback (most recent call last):
File "...KILT\scripts\get_triviaqa_input.py", line 88, in
data = json.load(fin)
File "...\miniconda3\lib\json__init__.py", line 293, in load
return loads(fp.read(),
File "...\miniconda3\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 2904: character maps to
The default encoding on Windows is cp1252. You'll need to either change your system encoding or update your local copy of kilt to read the file as utf8.
Running into this issue when running
get_triviaqa_input.py
$ python get_triviaqa_input.py