BrikerMan / Kashgari

Kashgari is a production-level NLP Transfer learning framework built on top of tf.keras for text-labeling and text-classification, includes Word2Vec, BERT, and GPT2 Language Embedding.
http://kashgari.readthedocs.io/
Apache License 2.0
2.4k stars 441 forks source link

[Question] 关于继续学习添加新的实体 #485

Closed SkyHunterC closed 2 years ago

SkyHunterC commented 2 years ago

You must follow the issue template and provide as much information as possible. otherwise, this issue will be closed. 请按照 issue 模板要求填写信息。如果没有按照 issue 模板填写,将会忽略并关闭这个 issue

Check List

Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

You can post pictures, but if specific text or code is required to reproduce the issue, please provide the text in a plain text format for easy copy/paste.

Environment

[Paste requirements.txt file here]

Question

[我是个小白,关于继续学习,如果数据集添加了新的实体,比如 GAME,BOOK,能在原模型的基础上compile_model后继续学习吗?我这里回报一个KeyError的错误]

BrikerMan commented 2 years ago

由于增加实体会导致模型最后一个层输出大小变化,目前不支持持续训练。只能从头重新训练。

stale[bot] commented 2 years ago

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.