Instructions to use maximuspowers/nmbp-bert-full-articles with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maximuspowers/nmbp-bert-full-articles with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="maximuspowers/nmbp-bert-full-articles")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("maximuspowers/nmbp-bert-full-articles") model = AutoModelForSequenceClassification.from_pretrained("maximuspowers/nmbp-bert-full-articles", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +10 -1
config.json
CHANGED
|
@@ -23,5 +23,14 @@
|
|
| 23 |
"transformers_version": "4.44.2",
|
| 24 |
"type_vocab_size": 2,
|
| 25 |
"use_cache": true,
|
| 26 |
-
"vocab_size": 30522
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
|
|
|
| 23 |
"transformers_version": "4.44.2",
|
| 24 |
"type_vocab_size": 2,
|
| 25 |
"use_cache": true,
|
| 26 |
+
"vocab_size": 30522,
|
| 27 |
+
"num_labels": 2,
|
| 28 |
+
"id2label": {
|
| 29 |
+
"0": "Unlikely",
|
| 30 |
+
"1": "Likely"
|
| 31 |
+
},
|
| 32 |
+
"label2id": {
|
| 33 |
+
"Unlikely": 0,
|
| 34 |
+
"Likely": 1
|
| 35 |
+
}
|
| 36 |
}
|