ShannonAI / glyce

Code for NeurIPS 2019 - Glyce: Glyph-vectors for Chinese Character Representations
https://arxiv.org/abs/1901.10125
Apache License 2.0
421 stars 75 forks source link

What's the bert_model in glyph_config #12

Open vikotse opened 5 years ago

vikotse commented 5 years ago

I am confused that what should I write in "bert_model" item. When I use vocab.txt of bert pretraining model, error occurs. When I use the path of bert pretraining model, error occurs too.

glyce/configs/glyce_bert.json

"glyph_config":{
         "hidden_dropout_prob": 0.5,
          "max_position_embeddings": 512,
          "bert_model": "/home/ubuntu/nieping/train_logs/models/bq",
littlesulley commented 5 years ago

thank you for following our work! i suppose your problem is due to the improper settings of the config file, for which we will add more detailed instructions for this soon. if you have any other problem, feel free to inform us!

vikotse commented 5 years ago

thank you for following our work! i suppose your problem is due to the improper settings of the config file, for which we will add more detailed instructions for this soon. if you have any other problem, feel free to inform us!

It seems like no newer progress?

ghost commented 4 years ago

Could you please add more details to the error? "bert_model" is the path to the folder that contains four files: [bert_config.json], [vocab.txt], [config.json], [pytorch_model.bin]. Or you can get the latest code by "git pull" and try again.