paperswithcode / paperswithcode-data

The full dataset behind paperswithcode.com
306 stars 32 forks source link

Issue with reading in the json #7

Closed aliforgetti closed 3 years ago

aliforgetti commented 3 years ago

I am using python to try and read in the papers with abstracts json file but it keeps throwing an error with the encoding.

with open('papers-with-abstracts.json', encoding = 'utf-8') as f:
    data = json.load(f)

This is what I have tried and I also tried a bunch of other encodings to see if it was able to parse it correctly. Am I missing something here? Is there a specific way to read this in?

aliforgetti commented 3 years ago

File seemed to be compressed but had an incorrect extension of .json through the website link. Used 7zip to extract the file first and then read in normally through python.