Omnibus commited on
Commit
cbff511
·
verified ·
1 Parent(s): fa28fed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -138,8 +138,13 @@ def sort_doc(text,steps_in=0,control=None):
138
  print(j)
139
  out_js = out_js+control_char[j]
140
 
141
- sen_obj_out=sen_obj_box[i]
142
- sen_obj_out['sentence']=sen_list[i-3:i+3]
 
 
 
 
 
143
 
144
  #sen_obj_out=sen_obj[i-3:i+3]
145
  #sen_obj=sen_obj_box[i]
 
138
  print(j)
139
  out_js = out_js+control_char[j]
140
 
141
+ sen_obj_out=sen_obj_box[i]
142
+
143
+ aa=3
144
+ bb=3
145
+ aa=i if i < 3
146
+
147
+ sen_obj_out['sentence']=sen_list[i-aa:i+bb]
148
 
149
  #sen_obj_out=sen_obj[i-3:i+3]
150
  #sen_obj=sen_obj_box[i]