Update README.md
Browse files
README.md
CHANGED
@@ -286,7 +286,7 @@ candidate_labels = ['travel', 'cooking', 'dancing']
|
|
286 |
classifier(sequence_to_classify, candidate_labels)
|
287 |
```
|
288 |
|
289 |
-
# [TA] Tasksource-adapters: 1 line access to
|
290 |
|
291 |
```python
|
292 |
!pip install tasknet tasksource
|
@@ -295,8 +295,8 @@ pipe = tn.load_pipeline('sileod/deberta-v3-base-tasksource-nli','glue/sst2') # w
|
|
295 |
pipe(['That movie was great !', 'Awful movie.'])
|
296 |
# [{'label': 'positive', 'score': 0.9956}, {'label': 'negative', 'score': 0.9967}]
|
297 |
```
|
298 |
-
|
299 |
The list of tasks is available in model config.json.
|
|
|
300 |
|
301 |
|
302 |
## Evaluation
|
|
|
286 |
classifier(sequence_to_classify, candidate_labels)
|
287 |
```
|
288 |
|
289 |
+
# [TA] Tasksource-adapters: 1 line access to hundreds of tasks
|
290 |
|
291 |
```python
|
292 |
!pip install tasknet tasksource
|
|
|
295 |
pipe(['That movie was great !', 'Awful movie.'])
|
296 |
# [{'label': 'positive', 'score': 0.9956}, {'label': 'negative', 'score': 0.9967}]
|
297 |
```
|
|
|
298 |
The list of tasks is available in model config.json.
|
299 |
+
This is more efficient than ZS since it requires only one forward pass per example, but it is less flexible.
|
300 |
|
301 |
|
302 |
## Evaluation
|