ltp
ltp copied to clipboard
下载模型后报错报错
加载LTP分词模型
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()?)
torch 版本太低了,最低需要1.6