akdeniz27 commited on
Commit
0399a85
·
1 Parent(s): 4874aa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,7 +82,7 @@ if Run_Button == True:
82
  if ind == 0:
83
  output_comb.append(entity)
84
  elif output[ind]["start"] == output[ind-1]["end"]:
85
- output_comb[ind-1]["entity"] = output_comb[ind-1]["entity"] + output[ind]["entity"]
86
  output_comb[ind-1]["end"] = output[ind]["end"]
87
  else:
88
  output_comb.append(entity)
 
82
  if ind == 0:
83
  output_comb.append(entity)
84
  elif output[ind]["start"] == output[ind-1]["end"]:
85
+ output_comb[ind-1]["entity_group"] = output_comb[ind-1]["entity_group"] + output[ind]["entity_group"]
86
  output_comb[ind-1]["end"] = output[ind]["end"]
87
  else:
88
  output_comb.append(entity)