Token Classification
Transformers
PyTorch
English
roberta
keyphrase-extraction
Eval Results (legacy)
Instructions to use ml6team/keyphrase-extraction-kbir-inspec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ml6team/keyphrase-extraction-kbir-inspec with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ml6team/keyphrase-extraction-kbir-inspec")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ml6team/keyphrase-extraction-kbir-inspec") model = AutoModelForTokenClassification.from_pretrained("ml6team/keyphrase-extraction-kbir-inspec", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Thomas De Decker commited on
Commit ·
afe6c76
1
Parent(s): 4ff89e3
Update label2id
Browse files- config.json +3 -3
config.json
CHANGED
|
@@ -19,9 +19,9 @@
|
|
| 19 |
"initializer_range": 0.02,
|
| 20 |
"intermediate_size": 4096,
|
| 21 |
"label2id": {
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
},
|
| 26 |
"layer_norm_eps": 1e-05,
|
| 27 |
"max_position_embeddings": 514,
|
|
|
|
| 19 |
"initializer_range": 0.02,
|
| 20 |
"intermediate_size": 4096,
|
| 21 |
"label2id": {
|
| 22 |
+
"B": 0,
|
| 23 |
+
"I": 1,
|
| 24 |
+
"O": 2
|
| 25 |
},
|
| 26 |
"layer_norm_eps": 1e-05,
|
| 27 |
"max_position_embeddings": 514,
|