Instructions to use nasa-impact/division-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nasa-impact/division-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nasa-impact/division-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nasa-impact/division-classifier") model = AutoModelForSequenceClassification.from_pretrained("nasa-impact/division-classifier") - Notebooks
- Google Colab
- Kaggle
Simran KC commited on
Commit ·
cadffb6
1
Parent(s): 9c77776
Add label to id mapping in config
Browse files- config.json +5 -5
config.json
CHANGED
|
@@ -20,11 +20,11 @@
|
|
| 20 |
"initializer_range": 0.02,
|
| 21 |
"intermediate_size": 3072,
|
| 22 |
"label2id": {
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
},
|
| 29 |
"layer_norm_eps": 1e-05,
|
| 30 |
"max_position_embeddings": 514,
|
|
|
|
| 20 |
"initializer_range": 0.02,
|
| 21 |
"intermediate_size": 3072,
|
| 22 |
"label2id": {
|
| 23 |
+
"Astrophysics": 0,
|
| 24 |
+
"Biological and Physical Sciences": 1,
|
| 25 |
+
"Earth Science": 2,
|
| 26 |
+
"Heliophysics": 3,
|
| 27 |
+
"Planetary Science": 4
|
| 28 |
},
|
| 29 |
"layer_norm_eps": 1e-05,
|
| 30 |
"max_position_embeddings": 514,
|