Update README.md
Browse files
README.md
CHANGED
|
@@ -102,7 +102,7 @@ tokenizer = AutoTokenizer.from_pretrained('allenai/specter2')
|
|
| 102 |
model = AutoModel.from_pretrained('allenai/specter2')
|
| 103 |
|
| 104 |
#load the adapter(s) as per the required task, provide an identifier for the adapter in load_as argument and activate it
|
| 105 |
-
model.load_adapter("allenai/specter2_classification", source="hf", load_as="
|
| 106 |
|
| 107 |
papers = [{'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
|
| 108 |
{'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}]
|
|
|
|
| 102 |
model = AutoModel.from_pretrained('allenai/specter2')
|
| 103 |
|
| 104 |
#load the adapter(s) as per the required task, provide an identifier for the adapter in load_as argument and activate it
|
| 105 |
+
model.load_adapter("allenai/specter2_classification", source="hf", load_as="classification", set_active=True)
|
| 106 |
|
| 107 |
papers = [{'title': 'BERT', 'abstract': 'We introduce a new language representation model called BERT'},
|
| 108 |
{'title': 'Attention is all you need', 'abstract': ' The dominant sequence transduction models are based on complex recurrent or convolutional neural networks'}]
|