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

How to Decode the LDC2003E14 Chinese Dataset and LDC2002E18 Chinese Dataset? #1

Open
zmykevin opened this issue Dec 5, 2017 · 3 comments

Comments

@zmykevin
Copy link

zmykevin commented Dec 5, 2017

Hi,
I am trying to use the LDC2003E14 and LDC2002E18 dataset under this repository for my research on machine translation, but I cannot really decode the Chinese text file in my python script. Can you let me know what encoding format is the chinese.txt file under these two repositories? Thanks.

@frankang
Copy link

iconv -f GBK -t utf-8 < file > file.utf8

@netaddi
Copy link

netaddi commented Jun 14, 2018

@frankang This failed with LDC2002E18, on both Mac and Linux.
The iconv of Mac gives iconv: (stdin):24715:8: cannot convert while linux gives iconv: illegal input sequence at position 2980929.

@frankang
Copy link

iconv -f GBK -t utf-8//IGNORE < file > file.utf8
but the output file will still contain unreadable sentences, may be adding a filter program to do some post-cleaning work afterwards.

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

3 participants