Instructions to use chkla/roberta-argument with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chkla/roberta-argument with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="chkla/roberta-argument")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("chkla/roberta-argument") model = AutoModelForSequenceClassification.from_pretrained("chkla/roberta-argument") - Notebooks
- Google Colab
- Kaggle
Christopher Klamm commited on
Commit ·
78a021a
1
Parent(s): 8c418e3
updated config
Browse files- .DS_Store +0 -0
- config.json +9 -1
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
config.json
CHANGED
|
@@ -22,5 +22,13 @@
|
|
| 22 |
"transformers_version": "4.3.3",
|
| 23 |
"type_vocab_size": 1,
|
| 24 |
"use_cache": true,
|
| 25 |
-
"vocab_size": 50265
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
|
|
|
| 22 |
"transformers_version": "4.3.3",
|
| 23 |
"type_vocab_size": 1,
|
| 24 |
"use_cache": true,
|
| 25 |
+
"vocab_size": 50265,
|
| 26 |
+
"id2label": {
|
| 27 |
+
"0": "NON-ARGUMENT",
|
| 28 |
+
"1": "ARGUMENT"
|
| 29 |
+
},
|
| 30 |
+
"label2id": {
|
| 31 |
+
"NON-ARGUMENT": 0,
|
| 32 |
+
"ARGUMENT": 1
|
| 33 |
+
}
|
| 34 |
}
|