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

ClueAI/PromptCLUE-base-v1-5 分类任务 #19

Open
zzfer1 opened this issue Apr 28, 2023 · 3 comments
Open

ClueAI/PromptCLUE-base-v1-5 分类任务 #19

zzfer1 opened this issue Apr 28, 2023 · 3 comments

Comments

@zzfer1
Copy link

zzfer1 commented Apr 28, 2023

请问调用本地ClueAI/PromptCLUE-base-v1-5进行分类任务,如何实现clueai API进行分类的输出效果呢?(给出prediction、每个label的Confidence)

@joytianya
Copy link
Collaborator

可以通过transformers里的generate的参数返回token得分,也可以在上面做一些处理

@zzfer1
Copy link
Author

zzfer1 commented May 4, 2023

可以通过transformers里的generate的参数返回token得分,也可以在上面做一些处理

谢谢
请问clueai api中classify任务使用的clueai-base和huggingface提供的开源的PromptCLUE-base是否一致呢?感觉对于文本分类,api的效果要好于本地调用模型

@joytianya
Copy link
Collaborator

不太一样

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

2 participants