bert-Chinese-classification-task icon indicating copy to clipboard operation
bert-Chinese-classification-task copied to clipboard

bert中文分类实践

Results 19 bert-Chinese-classification-task issues
Sort by recently updated
recently updated
newest added

您好,我运行了您的代码,上面显示如图报错,我修改了export路径,但好像还是没把与训练模型读进去,您知道原因吗

您好,非常感谢您的代码: 我在调试的时候,下载了谷歌的chinese_base压缩包,解压后,用https://github.com/huggingface/pytorch-pretrained-BERT/tree/1de35b624b9d7998feb4d518e4f7e8e53abac4e1的方法转化成bin。或者是用https://github.com/NLPScott/bert-Chinese-classification-task/issues/13这里提供的chinese版本,都会遇到模型载入的错误。 RuntimeError: Error(s) in loading state_dict for BertModel: Missing key(s) in state_dict: "embeddings.word_embeddings.weight", 可以发现是模型的名字对应错误,应该是名字有了调整,这里我解决不了,您能帮忙看看吗?

请问pytorch_model.bin可以去哪里下载

您好,很感谢您提供代码,本人水平有限,在执行这一步时: model.bert.load_state_dict(torch.load(args.init_checkpoint, map_location='cpu')) 遇到以下错误: RuntimeError: Error(s) in loading state_dict for BertModel: Missing key(s) in state_dict: "embeddings.word_embeddings.weight. ...." 请问这是为什么呢。

run_classifier_word.py: error: the following arguments are required: --data_dir, --bert_config_file, --task_name, --vocab_file, --output_dir

你好,我看你在做分类的时候,读入训练数据按照gbk格式来读取,请问这里设定编码格式是必须的么,我的训练数据格式就是utf-8格式的,读取我直接按照默认读取,并没有设置什么编码格式,而且程序也没有问题,但是训练结果并不好,这种现象是和编码有联系么?谢谢