fastHan icon indicating copy to clipboard operation
fastHan copied to clipboard

你好,模型有没有单独的下载地址

Open lmobot opened this issue 5 years ago • 12 comments

代码中自动下载时报错,有没有large模型单独的下载地址?有的话需要手动将模型放到哪个文件夹下面?

lmobot avatar Jun 15 '20 04:06 lmobot

您好,可以留下具体的报错信息吗? large模型及相关词表下载地址:http://212.129.155.247/fasthan/fasthan_large.zip, 将解压后的文件夹放在C:\Users\[您的用户名]\.fastNLP\fasthan\目录下。

fdugzc avatar Jun 15 '20 07:06 fdugzc

报错提示:requests.exceptions.ConnectionError: HTTPConnectionPool(host='212.129.155.247', port=80): Max retries exceeded with url: /fasthan/fasthan_base.zip (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f229020d630>: Failed to establish a new connection: [Errno 110] Connection timed out',))

并且我使用的是Linux服务器,相应的模型存放位置在哪里?

lmobot avatar Jun 15 '20 14:06 lmobot

模型存放位置可执行下述python代码得到: ` import os from fastNLP.io.file_utils import get_cache_path

print(os.path.join(get_cache_path(), 'fasthan')) ` 将解压后的文件夹放置于此目录中。 该报错将尽快尝试修复

fdugzc avatar Jun 16 '20 03:06 fdugzc

感谢,已经能够正常使用了

lmobot avatar Jun 16 '20 04:06 lmobot

有点不方便的地方是 预测结果【【token1,token2】】中 【token1,token2】的type是FastModel.Sentences;token1的type是FastModel.Token,无法直接使用list的join方法

lmobot avatar Jun 16 '20 05:06 lmobot

您是想将一个Token内的各个属性join起来吗?目前可以先用直接访问token属性的方式,如''.join([token.word,token.pos,str(token.head),token.head_label])。未来版本的fastHan更新将考虑您的建议

fdugzc avatar Jun 16 '20 08:06 fdugzc

两个模型的下载地址好像都不行

BeHappyForMe avatar Jun 22 '20 02:06 BeHappyForMe

两个模型的下载地址好像都不行

现在下载模型的服务器出了点问题,在修复中

fdugzc avatar Jun 22 '20 02:06 fdugzc

两个模型的下载地址好像都不行

已经好了

fdugzc avatar Jun 22 '20 02:06 fdugzc

有能下载的同学吗,下载好了的麻烦分享下下呀

freemanxzx avatar Nov 22 '21 07:11 freemanxzx

有能下载的同学吗,下载好了的麻烦分享下下呀

刚刚修复了一下,现在应该能下载了

fdugzc avatar Nov 22 '21 07:11 fdugzc

有能下载的同学吗,下载好了的麻烦分享下下呀

刚刚修复了一下,现在应该能下载了 谢谢,可以了

freemanxzx avatar Nov 22 '21 08:11 freemanxzx

现在还在维护吗,我也无法下载

jiqifanyiyanjiu avatar Dec 28 '23 07:12 jiqifanyiyanjiu

用1.8版本,不要用2.0

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: jiqifanyiyanjiu @.> 发送时间: 2023年12月28日 15:41 收件人: fastnlp/fastHan @.> 抄送: Zhichao Geng @.>, State change @.> 主题: Re: [fastnlp/fastHan] 你好,模型有没有单独的下载地址 (#4)

现在还在维护吗,我也无法下载

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>

fdugzc avatar Dec 28 '23 08:12 fdugzc