NER-using-Deep-Learning icon indicating copy to clipboard operation
NER-using-Deep-Learning copied to clipboard

decoding not happenning

Open madhu168 opened this issue 5 years ago • 2 comments

Hello,u haven't mentioned the type of decoding that has to happen in process_data.py in the method read_data and i have tried with utf-8 but it is still showing the same error. It would be a great help if u looked into this. I have attached a screenshot of the error. Screenshot (1)

madhu168 avatar Jun 11 '19 09:06 madhu168

Sorry for late replying

Can you replace the line

with codecs.open(datapath, 'r') as f:

by

with codecs.open(datapath, 'r', encoding='utf8') as f:

? See if this works. Also, are using the project's data or some other data?

pandeydivesh15 avatar Jul 01 '19 08:07 pandeydivesh15

Thanks,it worked for utf-8-sig,it isn't working for utf-8

madhu168 avatar Jul 02 '19 07:07 madhu168