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 +65 -65
config.json
CHANGED
|
@@ -9,42 +9,42 @@
|
|
| 9 |
"hidden_size": 128,
|
| 10 |
"id2label": {
|
| 11 |
"0": "O",
|
| 12 |
-
"1": "B-
|
| 13 |
-
"2": "I-
|
| 14 |
-
"3": "B-
|
| 15 |
-
"4": "I-
|
| 16 |
-
"5": "B-
|
| 17 |
-
"6": "I-
|
| 18 |
-
"7": "B-
|
| 19 |
-
"8": "I-
|
| 20 |
-
"9": "B-
|
| 21 |
-
"10": "I-
|
| 22 |
-
"11": "B-
|
| 23 |
-
"12": "I-
|
| 24 |
-
"13": "B-
|
| 25 |
-
"14": "I-
|
| 26 |
-
"15": "B-
|
| 27 |
-
"16": "I-
|
| 28 |
-
"17": "B-
|
| 29 |
-
"18": "I-
|
| 30 |
"19": "B-date",
|
| 31 |
"20": "I-date",
|
| 32 |
"21": "B-time",
|
| 33 |
"22": "I-time",
|
| 34 |
-
"23": "B-
|
| 35 |
-
"24": "I-
|
| 36 |
-
"25": "B-
|
| 37 |
-
"26": "I-
|
| 38 |
-
"27": "B-
|
| 39 |
-
"28": "I-
|
| 40 |
-
"29": "B-
|
| 41 |
-
"30": "I-
|
| 42 |
-
"31": "B-
|
| 43 |
-
"32": "I-
|
| 44 |
-
"33": "B-
|
| 45 |
-
"34": "I-
|
| 46 |
-
"35": "B-
|
| 47 |
-
"36": "I-
|
| 48 |
"37": "B-email",
|
| 49 |
"38": "I-email",
|
| 50 |
"39": "B-url",
|
|
@@ -55,43 +55,43 @@
|
|
| 55 |
"initializer_range": 0.02,
|
| 56 |
"intermediate_size": 512,
|
| 57 |
"label2id": {
|
| 58 |
-
|
| 59 |
-
"B-
|
| 60 |
-
"I-
|
| 61 |
-
"B-
|
| 62 |
-
"I-
|
| 63 |
-
"B-
|
| 64 |
-
"I-
|
| 65 |
-
"B-
|
| 66 |
-
"I-
|
| 67 |
-
"B-
|
| 68 |
-
"I-
|
| 69 |
-
"B-
|
| 70 |
-
"I-
|
| 71 |
-
"B-
|
| 72 |
-
"I-
|
| 73 |
-
"B-
|
| 74 |
-
"I-
|
| 75 |
-
"B-
|
| 76 |
-
"I-
|
| 77 |
"B-date": "19",
|
| 78 |
"I-date": "20",
|
| 79 |
"B-time": "21",
|
| 80 |
"I-time": "22",
|
| 81 |
-
"B-
|
| 82 |
-
"I-
|
| 83 |
-
"B-
|
| 84 |
-
"I-
|
| 85 |
-
"B-
|
| 86 |
-
"I-
|
| 87 |
-
"B-
|
| 88 |
-
"I-
|
| 89 |
-
"B-
|
| 90 |
-
"I-
|
| 91 |
-
"B-
|
| 92 |
-
"I-
|
| 93 |
-
"B-
|
| 94 |
-
"I-
|
| 95 |
"B-email": "37",
|
| 96 |
"I-email": "38",
|
| 97 |
"B-url": "39",
|
|
|
|
| 9 |
"hidden_size": 128,
|
| 10 |
"id2label": {
|
| 11 |
"0": "O",
|
| 12 |
+
"1": "B-from-location",
|
| 13 |
+
"2": "I-from-location",
|
| 14 |
+
"3": "B-from-state",
|
| 15 |
+
"4": "I-from-state",
|
| 16 |
+
"5": "B-from-country",
|
| 17 |
+
"6": "I-from-country",
|
| 18 |
+
"7": "B-from-address",
|
| 19 |
+
"8": "I-from-address",
|
| 20 |
+
"9": "B-to-location",
|
| 21 |
+
"10": "I-to-location",
|
| 22 |
+
"11": "B-to-state",
|
| 23 |
+
"12": "I-to-state",
|
| 24 |
+
"13": "B-to-country",
|
| 25 |
+
"14": "I-to-country",
|
| 26 |
+
"15": "B-to-address",
|
| 27 |
+
"16": "I-to-address",
|
| 28 |
+
"17": "B-transport-mode",
|
| 29 |
+
"18": "I-transport-mode",
|
| 30 |
"19": "B-date",
|
| 31 |
"20": "I-date",
|
| 32 |
"21": "B-time",
|
| 33 |
"22": "I-time",
|
| 34 |
+
"23": "B-departure-time",
|
| 35 |
+
"24": "I-departure-time",
|
| 36 |
+
"25": "B-arrival-time",
|
| 37 |
+
"26": "I-arrival-time",
|
| 38 |
+
"27": "B-company",
|
| 39 |
+
"28": "I-company",
|
| 40 |
+
"29": "B-organization",
|
| 41 |
+
"30": "I-organization",
|
| 42 |
+
"31": "B-person",
|
| 43 |
+
"32": "I-person",
|
| 44 |
+
"33": "B-job-title",
|
| 45 |
+
"34": "I-job-title",
|
| 46 |
+
"35": "B-phone",
|
| 47 |
+
"36": "I-phone",
|
| 48 |
"37": "B-email",
|
| 49 |
"38": "I-email",
|
| 50 |
"39": "B-url",
|
|
|
|
| 55 |
"initializer_range": 0.02,
|
| 56 |
"intermediate_size": 512,
|
| 57 |
"label2id": {
|
| 58 |
+
"O": "0",
|
| 59 |
+
"B-from-location": "1",
|
| 60 |
+
"I-from-location": "2",
|
| 61 |
+
"B-from-state": "3",
|
| 62 |
+
"I-from-state": "4",
|
| 63 |
+
"B-from-country": "5",
|
| 64 |
+
"I-from-country": "6",
|
| 65 |
+
"B-from-address": "7",
|
| 66 |
+
"I-from-address": "8",
|
| 67 |
+
"B-to-location": "9",
|
| 68 |
+
"I-to-location": "10",
|
| 69 |
+
"B-to-state": "11",
|
| 70 |
+
"I-to-state": "12",
|
| 71 |
+
"B-to-country": "13",
|
| 72 |
+
"I-to-country": "14",
|
| 73 |
+
"B-to-address": "15",
|
| 74 |
+
"I-to-address": "16",
|
| 75 |
+
"B-transport-mode": "17",
|
| 76 |
+
"I-transport-mode": "18",
|
| 77 |
"B-date": "19",
|
| 78 |
"I-date": "20",
|
| 79 |
"B-time": "21",
|
| 80 |
"I-time": "22",
|
| 81 |
+
"B-departure-time": "23",
|
| 82 |
+
"I-departure-time": "24",
|
| 83 |
+
"B-arrival-time": "25",
|
| 84 |
+
"I-arrival-time": "26",
|
| 85 |
+
"B-company": "27",
|
| 86 |
+
"I-company": "28",
|
| 87 |
+
"B-organization": "29",
|
| 88 |
+
"I-organization": "30",
|
| 89 |
+
"B-person": "31",
|
| 90 |
+
"I-person": "32",
|
| 91 |
+
"B-job-title": "33",
|
| 92 |
+
"I-job-title": "34",
|
| 93 |
+
"B-phone": "35",
|
| 94 |
+
"I-phone": "36",
|
| 95 |
"B-email": "37",
|
| 96 |
"I-email": "38",
|
| 97 |
"B-url": "39",
|