Kabeer Akande commited on
Commit
d7b40a0
1 Parent(s): 44f9f74

rerun the demo

Browse files
notebooks/Named_Entity_Recognition_Demo.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 2,
6
  "id": "aa1a8952",
7
  "metadata": {},
8
  "outputs": [],
@@ -13,81 +13,10 @@
13
  },
14
  {
15
  "cell_type": "code",
16
- "execution_count": 1,
17
  "id": "5493cee5",
18
  "metadata": {},
19
- "outputs": [
20
- {
21
- "data": {
22
- "application/vnd.jupyter.widget-view+json": {
23
- "model_id": "9b94e18c676540d1ad8312149bdbcc7c",
24
- "version_major": 2,
25
- "version_minor": 0
26
- },
27
- "text/plain": [
28
- "model.safetensors: 0%| | 0.00/431M [00:00<?, ?B/s]"
29
- ]
30
- },
31
- "metadata": {},
32
- "output_type": "display_data"
33
- },
34
- {
35
- "data": {
36
- "application/vnd.jupyter.widget-view+json": {
37
- "model_id": "586b43b1b9e2484c9b8636f9b41ab5e2",
38
- "version_major": 2,
39
- "version_minor": 0
40
- },
41
- "text/plain": [
42
- "tokenizer_config.json: 0%| | 0.00/1.19k [00:00<?, ?B/s]"
43
- ]
44
- },
45
- "metadata": {},
46
- "output_type": "display_data"
47
- },
48
- {
49
- "data": {
50
- "application/vnd.jupyter.widget-view+json": {
51
- "model_id": "d6c722044e074fd58b9cf1c67fa48551",
52
- "version_major": 2,
53
- "version_minor": 0
54
- },
55
- "text/plain": [
56
- "vocab.txt: 0%| | 0.00/213k [00:00<?, ?B/s]"
57
- ]
58
- },
59
- "metadata": {},
60
- "output_type": "display_data"
61
- },
62
- {
63
- "data": {
64
- "application/vnd.jupyter.widget-view+json": {
65
- "model_id": "95002c472f794e3b9b96dcfba697395e",
66
- "version_major": 2,
67
- "version_minor": 0
68
- },
69
- "text/plain": [
70
- "tokenizer.json: 0%| | 0.00/669k [00:00<?, ?B/s]"
71
- ]
72
- },
73
- "metadata": {},
74
- "output_type": "display_data"
75
- },
76
- {
77
- "data": {
78
- "application/vnd.jupyter.widget-view+json": {
79
- "model_id": "b71e5e8241de454c9bd5f7066b3f5413",
80
- "version_major": 2,
81
- "version_minor": 0
82
- },
83
- "text/plain": [
84
- "special_tokens_map.json: 0%| | 0.00/125 [00:00<?, ?B/s]"
85
- ]
86
- },
87
- "metadata": {},
88
- "output_type": "display_data"
89
- }
90
- ],
91
  "source": [
92
  "#reference appropriate Hugging Face model\n",
93
  "model_name = 'koakande/bert-finetuned-ner'\n",
@@ -188,7 +117,7 @@
188
  },
189
  {
190
  "cell_type": "code",
191
- "execution_count": 6,
192
  "id": "4d784554",
193
  "metadata": {},
194
  "outputs": [
@@ -196,7 +125,7 @@
196
  "name": "stdout",
197
  "output_type": "stream",
198
  "text": [
199
- "Running on local URL: http://127.0.0.1:7860\n",
200
  "\n",
201
  "To create a public link, set `share=True` in `launch()`.\n"
202
  ]
@@ -204,7 +133,7 @@
204
  {
205
  "data": {
206
  "text/html": [
207
- "<div><iframe src=\"http://127.0.0.1:7860/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
208
  ],
209
  "text/plain": [
210
  "<IPython.core.display.HTML object>"
@@ -217,7 +146,7 @@
217
  "data": {
218
  "text/plain": []
219
  },
220
- "execution_count": 6,
221
  "metadata": {},
222
  "output_type": "execute_result"
223
  }
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 1,
6
  "id": "aa1a8952",
7
  "metadata": {},
8
  "outputs": [],
 
13
  },
14
  {
15
  "cell_type": "code",
16
+ "execution_count": 2,
17
  "id": "5493cee5",
18
  "metadata": {},
19
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  "source": [
21
  "#reference appropriate Hugging Face model\n",
22
  "model_name = 'koakande/bert-finetuned-ner'\n",
 
117
  },
118
  {
119
  "cell_type": "code",
120
+ "execution_count": 7,
121
  "id": "4d784554",
122
  "metadata": {},
123
  "outputs": [
 
125
  "name": "stdout",
126
  "output_type": "stream",
127
  "text": [
128
+ "Running on local URL: http://127.0.0.1:7863\n",
129
  "\n",
130
  "To create a public link, set `share=True` in `launch()`.\n"
131
  ]
 
133
  {
134
  "data": {
135
  "text/html": [
136
+ "<div><iframe src=\"http://127.0.0.1:7863/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
137
  ],
138
  "text/plain": [
139
  "<IPython.core.display.HTML object>"
 
146
  "data": {
147
  "text/plain": []
148
  },
149
+ "execution_count": 7,
150
  "metadata": {},
151
  "output_type": "execute_result"
152
  }