Skip to content

Commit

Permalink
Fixes encoding error (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigonogueira4 authored Apr 29, 2020
1 parent 6029693 commit f6d2168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygaggle/data/kaggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class LitReviewDataset(BaseModel):

@classmethod
def from_file(cls, filename: str) -> 'LitReviewDataset':
with open(filename) as f:
with open(filename, encoding='utf-8') as f:
return cls(**json.load(f))

def query_answer_pairs(self, split: str = 'nq'):
Expand Down

0 comments on commit f6d2168

Please sign in to comment.