from ltp import LTP
# print(torch.cuda.is_available())
ltp = LTP( "LTP/base2")
if torch.cuda.is_available():
ltp.cuda()
ltp.to("cuda")
报错
RuntimeError: C:\Users\joint.cache\huggingface\hub\models--LTP--base2\snapshots\70c57011dab606d130c4027705fa155118ca396f\pytorch_model.bin is a zip archive (did you mean to use torch.jit.load()?)
加载LTP分词模型
报错 RuntimeError: C:\Users\joint.cache\huggingface\hub\models--LTP--base2\snapshots\70c57011dab606d130c4027705fa155118ca396f\pytorch_model.bin is a zip archive (did you mean to use torch.jit.load()?)