bert icon indicating copy to clipboard operation
bert copied to clipboard

how to generate vocab file that BERT model was trained on?

Open allenzhang010 opened this issue 8 years ago • 3 comments

I was weird how to generate the vocab file when specified --vocab_file to create_pretraining_data.py?

I noticed the released BERT model indeed include the vocab file? so, how's you guy generate it via for instance, enlish Wikipedia dump file? as I am going to do the pre-training from scratch. Appreciate your help!

Thanks, Allen Zhang

allenzhang010 avatar Nov 06 '18 02:11 allenzhang010

We couldn't include that code, see this section of the README for alternatives.

jacobdevlin-google avatar Nov 06 '18 03:11 jacobdevlin-google

@allenzhang010 have you work out the solution about this?

zihaolucky avatar Jan 01 '19 05:01 zihaolucky

you can use this to create your vocabulary https://github.com/kwonmha/bert-vocab-builder

arunzz avatar Jun 20 '19 05:06 arunzz