akdeniz27 commited on
Commit
32e294e
1 Parent(s): 3598e61

Update app.py

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