marcotcr / checklist

Beyond Accuracy: Behavioral Testing of NLP models with CheckList
MIT License
2.01k stars 204 forks source link

SQuAD test doesn't work on Windows #52

Closed ramarasty closed 3 years ago

ramarasty commented 3 years ago

The following line from the tutorial causes an error: suite.run_from_file(pred_path, overwrite=True, file_format='pred_only')

UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 6884: character maps to <undefined>

I fixed the issue by changing abstract_test.py line 15 to: f = open(path, 'r', encoding='utf-8')

marcotcr commented 3 years ago

thanks, fixed in 33c8ce9