zero-shot

作者 Mel-Iza0 · 下载 24 · 点赞 1 · 更新 2023-11-02

deberta-v3 zero-shot-classification zero-shot

How to use

classifier = pipeline("zero-shot-classification",
model='Mel-Iza0/zero-shot', tokenizer='Mel-Iza0/zero-shot')
#sorry for below lines
classes = []
for i in item.classes:
classes.extend(item.classes[i])
a = classifier(item.text,
classes,
hypothesis=hypothesis_template)['labels'][-1]
print('------------------------------------------')
print(a)

模型信息

该模型卡暂无预览图和文字说明。以下信息来自 Hugging Face。

作者 Mel-Iza0
类型—
基础模型—
标签deberta-v3、zero-shot-classification、zero-shot
下载24
点赞1
更新时间2023-11-02
Hugging Face https://huggingface.co/Mel-Iza0/zero-shot