-
大佬,运行时出现警告,BERT模型权重未使用。请问怎么解决?
(torchenv) D:\KG\BERT-BILSTM-CRF-main\BERT-BILSTM-CRF-main>python main.py
['O', 'B-故障设备', 'I-故障设备', 'B-故障原因', 'I-故障原因']
{'O': 0, 'B-故障设备': 1, 'I-故障设备': 2, 'B-故障原因':…
-
(pytorch18) z@z:~/code/nlp-notebook-master/3-2.Bert-CRF$ python demo_train.py
Some weights of the model checkpoint at ./bert-base-chinese were not used when initializing BertForNER: ['cls.predictions…
-
desfc updated
2 years ago
-
When I run the command:
run_bert_harem.py" --bert_model C:/bert-base-portuguese-cased --labels_file data/classes-selective.txt --do_train --train_file data/FirstHAREM-selective-train.json --valid_f…
-
https://github.com/CLUEbenchmark/CLUENER2020/blob/b6597268c000e06aa95bcdc59ef122805254cab6/pytorch_version/models/transformers/modeling_bert.py#L606
pytroch==1.6.0 需要注释extended_attention_mask = ext…
-
D:\Anaconda\Anaconda\envs\pytorch\python.exe D:/python/BERT-BILSTM-CRF-main/BERT-BILSTM-CRF-main/main.py
['O', 'B-故障设备', 'I-故障设备', 'B-故障原因', 'I-故障原因']
{'O': 0, 'B-故障设备': 1, 'I-故障设备': 2, 'B-故障原因': 3,…
-
```
(ASOTE) me@me:~/ASOTE/ASOTE$ sh repeat_non_bert.sh 0 101-ASOTEDataRest14-0,101-ASOTEDataRest14-1,101-ASOTEDataRest14-2,101-ASOTEDataRest14-3,101-ASOTEDataRest14-4 nlp_tasks/absa/mining_opinions/s…
-
Thanks for providing this code. I'd love to use it, but am getting the following error when running the trainer.
```
(py38_test) [richier@reslnapollo02 transformers_ner]$ python bert_crf_trainer.p…
-
作者你好,我用我自己的数据集进行训练的时候一直报错,
{0: 'O', 1: 'B-PRE', 2: 'I-PRE', 3: 'B-PAT', 4: 'I-PAT', 5: 'B-DES', 6: 'I-DES', 7: 'B-MED', 8: 'I-MED', 9: 'B-EFF', 10: 'I-EFF', 11: 'B-CAU', 12: 'I-CAU', 13: 'B-SYM', 14:…
-
Hi, I wrote the code for BERT token classification from scratch and was looking around how to add the CRF layer on top of the model for NER task. Ran into your repo and found it useful, thanks for tha…