首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用伯特-基-nli-均值-令牌模型时的误差

使用伯特-基-nli-均值-令牌模型时的误差
EN

Stack Overflow用户
提问于 2022-10-27 21:35:41
回答 1查看 47关注 0票数 1

我正在使用以下代码:

代码语言:javascript
复制
model = SentenceTransformer('bert-base-nli-mean-tokens')
body = list(data['preprocessedBody'])
bodyEmbedding = model.encode(body, show_progress_bar = True)

但是,我得到了这个错误:

代码语言:javascript
复制
ProxyError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/sentence-transformers/bert-base-nli-mean-tokens (Caused by ProxyError('Your proxy appears to only use HTTP and not HTTPS, try changing your proxy URL to be HTTP. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#https-proxy-error-http-proxy', SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))))
​

有什么解决办法吗?

谢谢您抽时间见我

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-10-29 04:08:55

这只是一个代理问题。我刚刚将httpshttp以及它们的相对代理值添加到windows的系统环境中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74228567

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档