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

快速开始中步骤4的疑问 #20

Open
yujun-8848 opened this issue May 19, 2023 · 2 comments
Open

快速开始中步骤4的疑问 #20

yujun-8848 opened this issue May 19, 2023 · 2 comments

Comments

@yujun-8848
Copy link

下载text2vec-base-chinese模型参数,将其放入./text2vec-base-chinese目录下。
这个步骤貌似跟代码对应不上,代码中是 需要from text2vec import SentenceModel
也就是说需要使用text2vec文件夹中的SentenceModel方法才能够读取text2vec-base-chinese,跟步骤中的描述不符合;
我不知道我的理解对不对;
hugging face中的text2vec-base-chinese模型参数具体是哪些,怎么下载

@yujun-8848
Copy link
Author

我理解错了,text2vec该依赖包中含有SentenceModel方法

@yujun-8848
Copy link
Author

那么./text2vec-base-chinese文件夹下的模型参数,是放置text2vec-base-chinese下的config.json文件吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant