ltp icon indicating copy to clipboard operation
ltp copied to clipboard

AttributeError: 'LTP' object has no attribute 'seg'

Open yrsuo opened this issue 1 year ago • 5 comments

Python: 3.10.9 torch: 1.13.1

from ltp import LTP ltp = LTP() segment, _ = ltp.seg(["他叫汤姆去拿外衣。"])

运行后出现 AttributeError: 'LTP' object has no attribute 'seg'

yrsuo avatar Mar 03 '23 12:03 yrsuo

same problem

orangetwo avatar Mar 14 '23 10:03 orangetwo

same prob

bnu-wangxun avatar Mar 17 '23 09:03 bnu-wangxun

any idea?

Lingling-LynnChan avatar Apr 03 '23 19:04 Lingling-LynnChan

You can try the following code: result = ltp.pipeline([query], tasks=["cws", "dep"])

orangetwo avatar Apr 04 '23 02:04 orangetwo

改改说明文档吧,孩子白忙活两小时(大哭)

Karrol avatar Feb 19 '24 06:02 Karrol