negation-learning icon indicating copy to clipboard operation
negation-learning copied to clipboard

BertForNegPreTraining? Have some problems while running your code

Open downeykking opened this issue 2 years ago • 1 comments

Error message: File "./negation-learning/transformers/examples/lm_training/finetune_on_pregenerated_negation_distributed.py", line 22, in from transformers.modeling_bert import BertForPreTraining, BertConfig, BertForNegPreTraining, BertForNegSameBatch ImportError: cannot import name 'BertForNegPreTraining' from 'transformers.modeling_bert' And I also did not find such a model on huggingface model web...

downeykking avatar Jan 10 '22 13:01 downeykking