Update README.md
Browse files
README.md
CHANGED
@@ -240,6 +240,17 @@ The list of tasks is available in model config.
|
|
240 |
|
241 |
tasksource training code: https://colab.research.google.com/drive/1iB4Oxl9_B5W3ZDzXoWJN-olUbqLBxgQS?usp=sharing
|
242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
### Software
|
244 |
https://github.com/sileod/tasksource/ \
|
245 |
https://github.com/sileod/tasknet/ \
|
|
|
240 |
|
241 |
tasksource training code: https://colab.research.google.com/drive/1iB4Oxl9_B5W3ZDzXoWJN-olUbqLBxgQS?usp=sharing
|
242 |
|
243 |
+
# Tasksource-adapters: 1 line access to 500 tasks
|
244 |
+
|
245 |
+
```python
|
246 |
+
!pip install tasknet tasksource
|
247 |
+
import tasknet as tn
|
248 |
+
pipe = tn.load_pipeline('sileod/deberta-v3-base-tasksource-nli','glue/sst2') # works for 500+ tasksource tasks
|
249 |
+
pipe(['That movie was great !', 'Awful movie.'])
|
250 |
+
|
251 |
+
# [{'label': 'positive', 'score': 0.9956129789352417}, {'label': 'negative', 'score': 0.9967049956321716}]
|
252 |
+
```
|
253 |
+
|
254 |
### Software
|
255 |
https://github.com/sileod/tasksource/ \
|
256 |
https://github.com/sileod/tasknet/ \
|