Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How do I apply arguments properly ?#1517

Unanswered
olmohake asked this question inQ&A
Jun 11, 2024· 1 comments· 1 reply
Discussion options

Thanks for the amazing work! I am trying to build a prof of concept using huggingface models that might be replaced with custom build once later on.eleldar/theme-classification supports the arguments multi_class and candidate_labels but I am currently running into problems applying them correctly.

topics JSONB GENERATED ALWAYSAS (pgml.transform(    task=>'{       "task": "text-classification",               "model": "eleldar/theme-classification"        }'::JSONB,        args=>'{              "multi_class": true,              "candidate_labels": "[a, b,c]"        }'::JSONB,    inputs=> ARRAY[content])) STORED

This results in:

unexpected keyword argument 'multi_class'

What am i missing?

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

To accept the multi_class + candidate_labels arguments, we'll need to add support for the zero shot classification pipeline.

from transformers import pipelineclassifier = pipeline("zero-shot-classification",                      model="facebook/bart-large-mnli")

https://huggingface.co/eleldar/theme-classification

You must be logged in to vote
1 reply
@montanalow
Comment options

Issue#1519

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@olmohake@montanalow

[8]ページ先頭

©2009-2025 Movatter.jp