Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decoding not happenning #5

Open
madhu168 opened this issue Jun 11, 2019 · 2 comments
Open

decoding not happenning #5

madhu168 opened this issue Jun 11, 2019 · 2 comments

Comments

@madhu168
Copy link

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)

@pandeydivesh15
Copy link
Owner

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?

@madhu168
Copy link
Author

madhu168 commented Jul 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants