facebookresearch / SpanBERT

Code for using and evaluating SpanBERT.
Other
884 stars 174 forks source link

Use existing pretrained model for retraining using SpanBERT #87

Open aman31kmr opened 2 years ago

aman31kmr commented 2 years ago

Hi, I have a pretrained BERT model for domain specific corpus, and I am trying to create SpanBERT language model for my corpus to predict ngrams masked terms. It is not allowing me to use my model.bin file and error is : train.py: error: argument --arch/-a: invalid choice: 'model/model.bin' (choose from 'bert_pair', 'bert_pair_large', 'cased_bert_pair', 'cased_bert_pair_large', 'bert_hf', 'bert_hf_large', 'cased_bert_hf', 'cased_bert_hf_large')