Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
How to use
|
3 |
+
```
|
4 |
+
classifier = pipeline("zero-shot-classification",
|
5 |
+
model='Mel-Iza0/zero-shot', tokenizer='Mel-Iza0/zero-shot')
|
6 |
+
#sorry for below lines
|
7 |
+
classes = []
|
8 |
+
for i in item.classes:
|
9 |
+
classes.extend(item.classes[i])
|
10 |
+
a = classifier(item.text,
|
11 |
+
classes,
|
12 |
+
hypothesis=hypothesis_template)['labels'][-1]
|
13 |
+
print('------------------------------------------')
|
14 |
+
print(a)
|
15 |
+
```
|