Files changed (1) hide show
  1. 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[i-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",
 
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",