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

如何对不同长度的句子生成固定维度的向量? #163

Open
RockNHawk opened this issue May 25, 2023 · 3 comments
Open

如何对不同长度的句子生成固定维度的向量? #163

RockNHawk opened this issue May 25, 2023 · 3 comments

Comments

@RockNHawk
Copy link

RockNHawk commented May 25, 2023

请教数据集都是基于字、词的向量,想要对不同长度的句子生成固定维度的向量,比如像 openai embedding 一样生成 1536 维的,应该怎么操作呢?

@RockNHawk RockNHawk changed the title 如何对一个句子生成固定长度的向量? 如何对一个句子生成固定维度的向量? May 25, 2023
@HunterHeidy
Copy link

HunterHeidy commented May 25, 2023 via email

@RockNHawk RockNHawk changed the title 如何对一个句子生成固定维度的向量? 如何对不同长度的句子生成固定维度的向量? May 25, 2023
@RockNHawk
Copy link
Author

抱歉前面打错,是如何对不同长度的句子生成固定维度的向量

@golangboy
Copy link

同问,对短的句子用一些不影响语义的符号进行填充?

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

3 participants