ltp
ltp copied to clipboard
AttributeError: 'LTP' object has no attribute 'seg'
Python: 3.10.9 torch: 1.13.1
from ltp import LTP ltp = LTP() segment, _ = ltp.seg(["他叫汤姆去拿外衣。"])
运行后出现 AttributeError: 'LTP' object has no attribute 'seg'
same problem
same prob
any idea?
You can try the following code:
result = ltp.pipeline([query], tasks=["cws", "dep"])
改改说明文档吧,孩子白忙活两小时(大哭)