WikiHow-Dataset icon indicating copy to clipboard operation
WikiHow-Dataset copied to clipboard

decoding error

Open JayanthBontha opened this issue 8 months ago • 0 comments

Firstly, I had to replace .ix with .loc When i ran process.py i ended up with the following error:

File "C:\Users\91901\Desktop\Code\summary\datasets\WikiHow-Dataset\process.py", line 53, in for line in t: File "C:\Users\91901\AppData\Local\Programs\Python\Python311\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 0x9d in position 223: character maps to

I fixed this by passing utf-8 as encoding while opeing temporary file.

JayanthBontha avatar Nov 03 '23 06:11 JayanthBontha