thuiar / TEXTOIR

TEXTOIR is the first opensource toolkit for text open intent recognition. (ACL 2021)
https://github.com/thuiar/TEXTOIR
MIT License
185 stars 30 forks source link

运行报错,想问下如何加载模型呢?无法自动下载模型。 #50

Closed Ratelsun closed 6 months ago

Ratelsun commented 10 months ago

如何手动添加模型呢?

HanleiZhang commented 6 months ago

您好,添加模型可以按照readme中Tutorials (b) 添加backbone(以open_intent_detection任务为例)。如果服务器没办法连上huggingface下载模型,则需要您手动下载模型并对应更新configs目录下参数文件以及backbones/base.py中加载预训练模型的函数