fix index
#4
by
GrigoryT22
- opened
- Inference.ipynb +1 -1
Inference.ipynb
CHANGED
@@ -76,7 +76,7 @@
|
|
76 |
" if (ner_result[i][\"entity_group\"] == prev_entity) &\\\n",
|
77 |
" (ner_result[i][\"start\"] == prev_end):\n",
|
78 |
" \n",
|
79 |
-
" entities[
|
80 |
" prev_entity = ner_result[i][\"entity_group\"]\n",
|
81 |
" prev_end = ner_result[i][\"end\"]\n",
|
82 |
" else:\n",
|
|
|
76 |
" if (ner_result[i][\"entity_group\"] == prev_entity) &\\\n",
|
77 |
" (ner_result[i][\"start\"] == prev_end):\n",
|
78 |
" \n",
|
79 |
+
" entities[-1][2] = ner_result[i][\"end\"]\n",
|
80 |
" prev_entity = ner_result[i][\"entity_group\"]\n",
|
81 |
" prev_end = ner_result[i][\"end\"]\n",
|
82 |
" else:\n",
|