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

sed 's/\B/ /g' ./train.tags.en-zh.zh > xxx.txt 出现乱码 #1

Open
IvyGongoogle opened this issue Oct 15, 2018 · 1 comment
Open

sed 's/\B/ /g' ./train.tags.en-zh.zh > xxx.txt 出现乱码 #1

IvyGongoogle opened this issue Oct 15, 2018 · 1 comment

Comments

@IvyGongoogle
Copy link

@IvyGongoogle IvyGongoogle commented Oct 15, 2018

您好,我在阅读9.3.2时,用sed 's/\B/ /g' ./train.tags.en-zh.zh > xxx.txt命令将 IWLST TED的train.raw.zh文件中的每个字符之间的边界替换为空格,但是结果文件是乱码,貌似\B 不work, 该怎么处理呢?

@cookeem
Copy link
Owner

@cookeem cookeem commented Oct 17, 2018

这个会不是是*
nix和windows的字符差别引起?你用的是windows?

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.