pyltp RuntimeError: incompatible native format - size of long

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_22521211/article/details/84029904

版本 3.4.0 windows 需使用 pisrl_win.model

下载链接: http://ltp.ai/download.html

roles = labeller.label(words, postags, arcs)
for role in roles:
    print([role.index, "".join(["%s:(%d,%d)" % (arg.name, arg.range.start, arg.range.end) for arg in role.arguments])])
[11, 'A1:(0,9)ADV:(10,10)']
[24, 'A1:(19,21)ADV:(22,23)']

猜你喜欢

转载自blog.csdn.net/qq_22521211/article/details/84029904