zero-shot / README.md
Mel-Iza0's picture
Update README.md
e5fb57a
metadata
language:
  - pt
tags:
  - 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)