Transformer-based-pretrained-model-for-event-extraction
Transformer-based-pretrained-model-for-event-extraction copied to clipboard
OSError: Unable to load weights from pytorch checkpoint file. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
请问出现在跑这个代码的时候出现如下问题要怎么解决呢 OSError: Unable to load weights from pytorch checkpoint file. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
你好请问你解决了吗?
这个是模型的加载问题,从官网上下模型,from_pretrained加载即可