bert icon indicating copy to clipboard operation
bert copied to clipboard

How many word pieces is suitable for Chinese?

Open jiqiujia opened this issue 8 years ago • 1 comments

Are there any metric to measure the effect of different number of word pieces without need to train the model?

jiqiujia avatar Nov 01 '18 12:11 jiqiujia

Going based on results from Neural Machine Translation, 30k-50k is a good size in almost any language. For example, the top Chinese translation system in this year's Workshop for Machine Translation used 50k WordPieces (see section 3.4 in this paper).

Our tokenizer is not actually suitable for Chinese (and we don't include code to learn WordPieces), but the Google SentencePiece toolkit does have good support for Chinese.

jacobdevlin-google avatar Nov 01 '18 13:11 jacobdevlin-google