Token Classification
Transformers
Safetensors
English
bert
ner
named-entity-recognition
text-classification
transformer
pretrained-model
huggingface
real-time-inference
efficient-nlp
micro-nlp
chatbot
information-extraction
document-understanding
search-enhancement
medical-nlp
financial-nlp
legal-nlp
general-purpose-nlp
on-device-nlp
Instructions to use boltuix/EntityBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use boltuix/EntityBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="boltuix/EntityBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("boltuix/EntityBERT") model = AutoModelForTokenClassification.from_pretrained("boltuix/EntityBERT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +11 -11
config.json
CHANGED
|
@@ -35,8 +35,8 @@
|
|
| 35 |
"24": "I-departure_time",
|
| 36 |
"25": "B-arrival_time",
|
| 37 |
"26": "I-arrival_time",
|
| 38 |
-
"27": "B-
|
| 39 |
-
"28": "I-
|
| 40 |
"29": "B-organization_name",
|
| 41 |
"30": "I-organization_name",
|
| 42 |
"31": "B-person_name",
|
|
@@ -82,20 +82,20 @@
|
|
| 82 |
"I-departure_time": 24,
|
| 83 |
"B-arrival_time": 25,
|
| 84 |
"I-arrival_time": 26,
|
| 85 |
-
"B-
|
| 86 |
-
"I-
|
| 87 |
"B-organization_name": 29,
|
| 88 |
"I-organization_name": 30,
|
| 89 |
"B-person_name": 31,
|
| 90 |
"I-person_name": 32,
|
| 91 |
"B-job_title": 33,
|
| 92 |
-
"I-job_title": 34,
|
| 93 |
-
"B-phone_number": 35,
|
| 94 |
"I-phone_number": 36,
|
| 95 |
"B-email": 37,
|
| 96 |
"I-email": 38,
|
| 97 |
-
"B-url": 39,
|
| 98 |
-
"I-url": 40,
|
| 99 |
"LABEL_41": 41,
|
| 100 |
"LABEL_42": 42
|
| 101 |
},
|
|
@@ -103,11 +103,11 @@
|
|
| 103 |
"max_position_embeddings": 512,
|
| 104 |
"model_type": "bert",
|
| 105 |
"num_attention_heads": 2,
|
| 106 |
-
"num_hidden_layers":
|
| 107 |
-
"pad_token_id": 0,
|
| 108 |
"position_embedding_type": "absolute",
|
| 109 |
"torch_dtype": "float32",
|
| 110 |
-
"transformers_version": "4.
|
| 111 |
"type_vocab_size": 2,
|
| 112 |
"use_cache": true,
|
| 113 |
"vocab_size": 30522
|
|
|
|
| 35 |
"24": "I-departure_time",
|
| 36 |
"25": "B-arrival_time",
|
| 37 |
"26": "I-arrival_time",
|
| 38 |
+
"27": "B-product_name",
|
| 39 |
+
"28": "I-product_name",
|
| 40 |
"29": "B-organization_name",
|
| 41 |
"30": "I-organization_name",
|
| 42 |
"31": "B-person_name",
|
|
|
|
| 82 |
"I-departure_time": 24,
|
| 83 |
"B-arrival_time": 25,
|
| 84 |
"I-arrival_time": 26,
|
| 85 |
+
"B-product_name": 27,
|
| 86 |
+
"I-product_name": 28,
|
| 87 |
"B-organization_name": 29,
|
| 88 |
"I-organization_name": 30,
|
| 89 |
"B-person_name": 31,
|
| 90 |
"I-person_name": 32,
|
| 91 |
"B-job_title": 33,
|
| 92 |
+
"I-job_title": "34,
|
| 93 |
+
"B-phone_number": "35",
|
| 94 |
"I-phone_number": 36,
|
| 95 |
"B-email": 37,
|
| 96 |
"I-email": 38,
|
| 97 |
+
"B-url": "39,
|
| 98 |
+
"I-url": "40,
|
| 99 |
"LABEL_41": 41,
|
| 100 |
"LABEL_42": 42
|
| 101 |
},
|
|
|
|
| 103 |
"max_position_embeddings": 512,
|
| 104 |
"model_type": "bert",
|
| 105 |
"num_attention_heads": 2,
|
| 106 |
+
"num_hidden_layers": 11,
|
| 107 |
+
"pad_token_id": 0",
|
| 108 |
"position_embedding_type": "absolute",
|
| 109 |
"torch_dtype": "float32",
|
| 110 |
+
"transformers_version": "4.35.2",
|
| 111 |
"type_vocab_size": 2,
|
| 112 |
"use_cache": true,
|
| 113 |
"vocab_size": 30522
|