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

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

Open
KangChou opened this issue May 12, 2022 · 1 comment
Open

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

KangChou opened this issue May 12, 2022 · 1 comment

Comments

@KangChou
Copy link

KangChou commented May 12, 2022

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
Copy link

lcyyyyyyyyyyy commented May 12, 2022 via email

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

2 participants