Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

什么时候Segmentor支持读入个性化分词模型? #26

Open
neofung opened this issue Apr 27, 2017 · 0 comments
Open

什么时候Segmentor支持读入个性化分词模型? #26

neofung opened this issue Apr 27, 2017 · 0 comments

Comments

@neofung
Copy link

neofung commented Apr 27, 2017

个性化分词训练出来的个性化分词模型,能否和基础模型一同读入进去Segmentor呢?参考pyltp样例

customized_segmentor = CustomizedSegmentor()  # 初始化实例
customized_segmentor.load('/path/to/your/base_model', '/path/to/your/customized_model') # 加载模型
words = customized_segmentor.segment('亚硝酸盐是一种化学物质')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant