bert icon indicating copy to clipboard operation
bert copied to clipboard

Whitespace around Chinese characters may not keep the original intention of the sentence.

Open taku910 opened this issue 8 years ago • 1 comments

Thank you for the great work.

It is a minor issue but the multilingual tokenizer puts whitespaces around Chinese characters. With this treatment, two raw text 東京 and 東 京 are considered identical, though they are not always the same. User occasionally puts whitespace as a strong phrase/concept boundary marker.

The treatment of Chinese characters does not seem to be consistent. It would be more consistent to consider the continuous run of Chinese characters as words and force them to be segmented into characters as follows. Any thoughts?

東京 => 東 ##京 東 京 => 東 京

taku910 avatar Nov 16 '18 13:11 taku910

See #138

jacobdevlin-google avatar Nov 17 '18 18:11 jacobdevlin-google