Skip to content

LTP' object has no attribute 'init_dict' #737

@xinyuran

Description

@xinyuran

在加载模型时加载自定义的字典时,没有办法使用官方文档(https://ltp.readthedocs.io/zh-cn/latest/quickstart.html)中的ltp.init_dict(path="user_dict.txt", max_window=4) 通过 init_dict() 的方式来加载自定义字典,提示没有 init_dict() 方法。只能使用add_words()方法来加载。这是为什么呢?以及这个问题目前有解决方案吗?
ps:使用的ltp版本为 4.2.14

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