Update README.md
Browse files
README.md
CHANGED
@@ -73,6 +73,7 @@ How to use DistilCamemBERT-NLI
|
|
73 |
------------------------------
|
74 |
```python
|
75 |
from transformers import pipeline
|
|
|
76 |
classifier = pipeline(
|
77 |
task='zero-shot-classification',
|
78 |
model="cmarkea/distilcamembert-base-nli",
|
@@ -89,6 +90,7 @@ result = classifier (
|
|
89 |
candidate_labels="cinéma, technologie, littérature, politique",
|
90 |
hypothesis_template="Ce texte parle de {}."
|
91 |
)
|
|
|
92 |
result
|
93 |
{"labels": ["cinéma",
|
94 |
"littérature",
|
|
|
73 |
------------------------------
|
74 |
```python
|
75 |
from transformers import pipeline
|
76 |
+
|
77 |
classifier = pipeline(
|
78 |
task='zero-shot-classification',
|
79 |
model="cmarkea/distilcamembert-base-nli",
|
|
|
90 |
candidate_labels="cinéma, technologie, littérature, politique",
|
91 |
hypothesis_template="Ce texte parle de {}."
|
92 |
)
|
93 |
+
|
94 |
result
|
95 |
{"labels": ["cinéma",
|
96 |
"littérature",
|