Bert-Chinese-Text-Classification-Pytorch icon indicating copy to clipboard operation
Bert-Chinese-Text-Classification-Pytorch copied to clipboard

使用Bert,ERNIE,进行中文文本分类

Results 145 Bert-Chinese-Text-Classification-Pytorch issues
Sort by recently updated
recently updated
newest added

在模型训练中,epoch是3个,那每一个epoch里面是迭代多少次

解决了,我自己修改了一部分代码解决了这个问题。 > 2021年5月21日 22:16,AnnieWX ***@***.***> 写道: > > > 请问解决了吗?是什么原因呀。。。 > > — > You are receiving this because you commented. > Reply to this email directly, view it on...

您好,关于utils.py中build_dataset方法中对输入文本进行pading部分: def load_dataset(path, pad_size=32): contents = [] with open(path, 'r', encoding='utf-8') as f: for line in tqdm(f): lin = line.strip() if not lin: continue content, label = lin.split('\t') token =...

如果想支持多标签,怎么修改代码呢?

how to convert besk.ckpt to onnx ?

报错处:_, pooled = self.bert(context, attention_mask=mask, output_all_encoded_layers=False) 报错如下 RuntimeError: The size of tensor a (117) must match the size of tensor b (118) at non-singleton dimension 3