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

normalize-punctuation.perl Change the Chinese punctuation marks in English sentences into English. #226

Open
QzzIsCoding opened this issue Dec 8, 2021 · 1 comment

Comments

@QzzIsCoding
Copy link

Hi, thanks for sharing the tool. And I have a question.
I used this command, but it didn't achieve the effect I wanted. So, I want to know how to use the file normalize-punctuation.perl.

NORM_PUNC=/mosesdecoder/scripts/tokenizer/normalize-punctuation.perl
perl ${NORM_PUNC} -l en < ${data_dir}/en.txt > ${data_dir}/norm_en.txt

The sentences in the two documents are the same.
However,the imaging process will in-evitably be affected。
The Chinese punctuation marks didn't change to English punctuation marks.

@hieuhoang
Copy link
Contributor

looking at the code, it doesn't look like the script convert chinese characters. Maybe you can extend it to do so

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