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

自定义模型 训练 保存 再倒入使用报错 #463

Open
xrzlizheng opened this issue Apr 2, 2021 · 5 comments
Open

自定义模型 训练 保存 再倒入使用报错 #463

xrzlizheng opened this issue Apr 2, 2021 · 5 comments
Labels
wontfix This will not be worked on

Comments

@xrzlizheng
Copy link

File ".\getvec.py", line 86, in
pro_model =Double_BiLSTM_Model.load_model('double_model')
File "d:\anaconda3\lib\site-packages\kashgari\tasks\abs_task_model.py", line 101, in load_model
model = load_data_object(model_config)
File "d:\anaconda3\lib\site-packages\kashgari\utils\serialize.py", line 25, in load_data_object
obj: Any = pydoc.locate(module_name)(**data['config'], **kwargs) # type: ignore
TypeError: 'NoneType' object is not callable

@BrikerMan
Copy link
Owner

2.0.2 版本应该修复了该问题,可以测试一下~

@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 16, 2022
@AnitaSherry
Copy link

仍然报错

@stale stale bot removed the wontfix This will not be worked on label Jun 20, 2022
@pineapple-427
Copy link

我也遇到了类似的问题,我的解决方法是将自定义的模型放到kashgari.tasks.classification 中,重新导入模型解决了此问题。不知有没有别的load_model()方法.

@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants