lancopku / pkuseg-python

pkuseg多领域中文分词工具; The pkuseg toolkit for multi-domain Chinese word segmentation
MIT License
6.55k stars 986 forks source link

TypeError: train() got an unexpected keyword argument 'nthread' #159

Open KangChou opened 2 years ago

KangChou commented 2 years ago

TypeError: train() got an unexpected keyword argument 'nthread'


import pkuseg

# 训练文件为'train.txt'
# 测试文件为'test.txt'
# 加载'./pretrained'目录下的模型,训练好的模型保存在'./models',训练10轮
pkuseg.train('train.txt', 'test.txt', './models', train_iter=10, init_model='./pretrained')
lcyyyyyyyyyyy commented 2 years ago

@.***,本次回复为系统自动回复!