以下代码运行报错:TypeError: argument 'stn_length': 'float' object cannot be interpreted as an integer
raw = open(file_name, encoding = 'utf-8').read()
sents = StnSplit().split(raw)
for sent in sents:
result = ltp.pipeline([sent], tasks = ["cws", "pos", "dep"])
以下代码运行报错:TypeError: argument 'stn_length': 'float' object cannot be interpreted as an integer
但是,如果tasks中只保留“cws”和"pos",则运行正常。