等小雨停 2022-11-03 15:05 采纳率: 0%
浏览 24

自然语言处理Hanlp运行错误

Traceback (most recent call last):
  File "D:/hanlp-python/pyhanlp/tests/book/ch05/perceptron_cws.py", line 36, in <module>
    print(segment.seg(sent))
TypeError: Ambiguous overloads found for com.hankcs.hanlp.seg.Segment.seg(str) between:
    public java.util.List com.hankcs.hanlp.seg.Segment.seg(char[])
    public java.util.List com.hankcs.hanlp.seg.Segment.seg(java.lang.String)

#自然语言处理
#Hanlp

  • 写回答

1条回答 默认 最新

  • 「已注销」 2022-11-03 15:10
    关注

    你得运行环境是什么呀!

    评论

报告相同问题?

问题事件

  • 创建了问题 11月3日