Skip to content

3.2.1 使用ltp分词示例错误 #18

@todochenxi

Description

@todochenxi
from lip import LTP
ltp = LTP()
# segment, hidden = ltp.seg(['南京市长江大桥。']) 报错
# 修改为
segment = ltp.pipeline(['南京市长江大桥。'], tasks=['cws'], return_dict=False)
print(segment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions