Closed rachel2011 closed 3 years ago
SET model_type="WCBertCRF_Token" OR model_type="BertWordLSTMCRF_Token" ~~~嘻嘻
Hi,
I appreciate @yinazhu 's reply and it is right. The model_type should be set to "WCBertCRF_Token" and "BertWordLSTMCRF_Token", and they correspond to "LEBERT" and "BERT+Word".
I would like to suggest you take a look at the source code first before you use it.
Wei
I'm planning to do Chinese NER with the LeBert model. From my understanding I have to set model_type = "LEBertCRF_Token" to train LEBERT model, but I got an error like this "UnboundLocalError: local variable 'model' referenced before assignment". Is there anything else I have to change? Any example or lead would be really helpful.