|
26 | 26 | }, |
27 | 27 | { |
28 | 28 | "cell_type": "code", |
29 | | - "execution_count": 2, |
| 29 | + "execution_count": 1, |
30 | 30 | "id": "delayed-certificate", |
31 | 31 | "metadata": {}, |
32 | 32 | "outputs": [], |
|
47 | 47 | }, |
48 | 48 | { |
49 | 49 | "cell_type": "code", |
50 | | - "execution_count": 3, |
| 50 | + "execution_count": 2, |
51 | 51 | "id": "monetary-jesus", |
52 | 52 | "metadata": {}, |
53 | 53 | "outputs": [], |
|
70 | 70 | }, |
71 | 71 | { |
72 | 72 | "cell_type": "code", |
73 | | - "execution_count": 4, |
| 73 | + "execution_count": 3, |
74 | 74 | "id": "prescribed-colonial", |
75 | 75 | "metadata": {}, |
76 | 76 | "outputs": [], |
|
81 | 81 | }, |
82 | 82 | { |
83 | 83 | "cell_type": "code", |
84 | | - "execution_count": 5, |
| 84 | + "execution_count": 4, |
85 | 85 | "id": "incoming-crossing", |
86 | 86 | "metadata": {}, |
87 | 87 | "outputs": [], |
|
101 | 101 | }, |
102 | 102 | { |
103 | 103 | "cell_type": "code", |
104 | | - "execution_count": 6, |
| 104 | + "execution_count": 5, |
105 | 105 | "id": "scheduled-attraction", |
106 | 106 | "metadata": {}, |
107 | 107 | "outputs": [], |
|
115 | 115 | }, |
116 | 116 | { |
117 | 117 | "cell_type": "code", |
118 | | - "execution_count": 7, |
| 118 | + "execution_count": 6, |
119 | 119 | "id": "corrected-activation", |
120 | 120 | "metadata": {}, |
121 | 121 | "outputs": [], |
|
135 | 135 | }, |
136 | 136 | { |
137 | 137 | "cell_type": "code", |
138 | | - "execution_count": 8, |
| 138 | + "execution_count": 7, |
139 | 139 | "id": "improving-carter", |
140 | 140 | "metadata": {}, |
141 | 141 | "outputs": [ |
|
145 | 145 | "True" |
146 | 146 | ] |
147 | 147 | }, |
148 | | - "execution_count": 9, |
| 148 | + "execution_count": 7, |
149 | 149 | "metadata": {}, |
150 | 150 | "output_type": "execute_result" |
151 | 151 | } |
|
156 | 156 | }, |
157 | 157 | { |
158 | 158 | "cell_type": "code", |
159 | | - "execution_count": 9, |
| 159 | + "execution_count": 8, |
160 | 160 | "id": "dried-mediterranean", |
161 | 161 | "metadata": {}, |
162 | 162 | "outputs": [], |
|
177 | 177 | }, |
178 | 178 | { |
179 | 179 | "cell_type": "code", |
180 | | - "execution_count": 10, |
| 180 | + "execution_count": 9, |
181 | 181 | "id": "complex-vietnamese", |
182 | 182 | "metadata": {}, |
183 | 183 | "outputs": [ |
184 | 184 | { |
185 | 185 | "name": "stdout", |
186 | 186 | "output_type": "stream", |
187 | 187 | "text": [ |
188 | | - "2021-03-29 16:46:54,860 --------------------------------------------------------------------------------\n", |
189 | | - "2021-03-29 16:46:54,861 The model key 'ner-ontonotes-fast' now maps to 'https://huggingface.co/flair/ner-english-ontonotes-fast' on the HuggingFace ModelHub\n", |
190 | | - "2021-03-29 16:46:54,862 - The most current version of the model is automatically downloaded from there.\n", |
191 | | - "2021-03-29 16:46:54,863 - (you can alternatively manually download the original model at https://nlp.informatik.hu-berlin.de/resources/models/ner-ontonotes-fast/en-ner-ontonotes-fast-v0.4.pt)\n", |
192 | | - "2021-03-29 16:46:54,863 --------------------------------------------------------------------------------\n", |
193 | | - "2021-03-29 16:46:55,205 loading file /Users/matthewsokoloff/.flair/models/ner-english-ontonotes-fast/0d55dd3b912da9cf26e003035a0c269a0e9ab222f0be1e48a3bbba3a58c0fed0.c9907cd5fde3ce84b71a4172e7ca03841cd81ab71d13eb68aa08b259f57c00b6\n" |
| 188 | + "2021-04-28 13:39:33,259 --------------------------------------------------------------------------------\n", |
| 189 | + "2021-04-28 13:39:33,260 The model key 'ner-ontonotes-fast' now maps to 'https://huggingface.co/flair/ner-english-ontonotes-fast' on the HuggingFace ModelHub\n", |
| 190 | + "2021-04-28 13:39:33,260 - The most current version of the model is automatically downloaded from there.\n", |
| 191 | + "2021-04-28 13:39:33,261 - (you can alternatively manually download the original model at https://nlp.informatik.hu-berlin.de/resources/models/ner-ontonotes-fast/en-ner-ontonotes-fast-v0.4.pt)\n", |
| 192 | + "2021-04-28 13:39:33,262 --------------------------------------------------------------------------------\n", |
| 193 | + "2021-04-28 13:39:33,785 loading file /Users/matthewsokoloff/.flair/models/ner-english-ontonotes-fast/0d55dd3b912da9cf26e003035a0c269a0e9ab222f0be1e48a3bbba3a58c0fed0.c9907cd5fde3ce84b71a4172e7ca03841cd81ab71d13eb68aa08b259f57c00b6\n" |
194 | 194 | ] |
195 | 195 | } |
196 | 196 | ], |
|
212 | 212 | }, |
213 | 213 | { |
214 | 214 | "cell_type": "code", |
215 | | - "execution_count": 11, |
| 215 | + "execution_count": 10, |
216 | 216 | "id": "usual-fellow", |
217 | 217 | "metadata": {}, |
218 | 218 | "outputs": [], |
219 | 219 | "source": [ |
220 | | - "def get_ner_ndjson(datarow_id: str, schema_id: str, start: int,\n", |
| 220 | + "def get_ner_ndjson(datarow_id: str, feature_schema_id: str, start: int,\n", |
221 | 221 | " end: int) -> Dict[str, Any]:\n", |
222 | 222 | " \"\"\"\n", |
223 | 223 | " * https://docs.labelbox.com/data-model/en/index-en#entity\n", |
224 | 224 | " \n", |
225 | 225 | " Args:\n", |
226 | 226 | " datarow_id (str): id of the data_row (in this case image) to add this annotation to\n", |
227 | | - " schema_id (str): id of the bbox tool in the current ontology\n", |
| 227 | + " feature_schema_id (str): id of the bbox tool in the current ontology\n", |
228 | 228 | " start (int): Character index where the entity begins\n", |
229 | 229 | " end (int): Character index where the entity ends\n", |
230 | 230 | " Returns:\n", |
|
245 | 245 | }, |
246 | 246 | { |
247 | 247 | "cell_type": "code", |
248 | | - "execution_count": 12, |
| 248 | + "execution_count": 11, |
249 | 249 | "id": "mineral-worse", |
250 | 250 | "metadata": {}, |
251 | 251 | "outputs": [], |
|
272 | 272 | }, |
273 | 273 | { |
274 | 274 | "cell_type": "code", |
275 | | - "execution_count": 13, |
| 275 | + "execution_count": 12, |
276 | 276 | "id": "caroline-medication", |
277 | 277 | "metadata": {}, |
278 | 278 | "outputs": [], |
|
284 | 284 | }, |
285 | 285 | { |
286 | 286 | "cell_type": "code", |
287 | | - "execution_count": 14, |
| 287 | + "execution_count": 13, |
288 | 288 | "id": "extensive-momentum", |
289 | 289 | "metadata": {}, |
290 | 290 | "outputs": [ |
291 | 291 | { |
292 | 292 | "name": "stdout", |
293 | 293 | "output_type": "stream", |
294 | 294 | "text": [ |
295 | | - "{'uuid': '55857428-16d4-45f6-930f-2c673d4b54e4', 'dataRow': {'id': 'ckmv2avfg081f0y8u63y16u77'}, 'status': 'SUCCESS'}\n", |
296 | | - "{'uuid': '88320670-2e63-4e71-bee3-ab64085e3f2b', 'dataRow': {'id': 'ckmv2avfg081f0y8u63y16u77'}, 'status': 'SUCCESS'}\n", |
297 | | - "{'uuid': '0aa39034-bb8a-4dfe-bbe9-657fd9dad71d', 'dataRow': {'id': 'ckmv2avfg081f0y8u63y16u77'}, 'status': 'SUCCESS'}\n" |
| 295 | + "{'uuid': 'f7463328-48f0-4b9f-a71c-fe0531284814', 'dataRow': {'id': 'cko1qthsd6usd0ydu5ier4r7g'}, 'status': 'SUCCESS'}\n", |
| 296 | + "{'uuid': 'd1966b22-4b23-4085-90a2-03b99c9bef9e', 'dataRow': {'id': 'cko1qthsd6usd0ydu5ier4r7g'}, 'status': 'SUCCESS'}\n", |
| 297 | + "{'uuid': '7503ce1e-cd0e-4fe4-8e45-39a79c68562a', 'dataRow': {'id': 'cko1qthsd6usd0ydu5ier4r7g'}, 'status': 'SUCCESS'}\n" |
298 | 298 | ] |
299 | 299 | } |
300 | 300 | ], |
|
0 commit comments