Omnibus commited on
Commit
d1dc4ab
·
verified ·
1 Parent(s): 16b77d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -137,12 +137,16 @@ def sort_doc(text,steps_in=0,control=None):
137
  for iii,j in enumerate(step_cont_box):
138
  print(j)
139
  out_js = out_js+control_char[j]
140
- sen_obj=sen_obj_box[i-3:i+3]
 
 
 
 
141
  #sen_obj=sen_obj_box[i]
142
  #sen_obj=proc_sen(sen_list,i)
143
 
144
  #json_out[out_js]={'nouns':ea}
145
- json_out[out_js]=sen_obj
146
  print ("#################")
147
  print (out_js)
148
  print (sen_obj)
 
137
  for iii,j in enumerate(step_cont_box):
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_obj[i-3:i+3]
143
+
144
+ #sen_obj_out=sen_obj[i-3:i+3]
145
  #sen_obj=sen_obj_box[i]
146
  #sen_obj=proc_sen(sen_list,i)
147
 
148
  #json_out[out_js]={'nouns':ea}
149
+ json_out[out_js]=sen_obj_out
150
  print ("#################")
151
  print (out_js)
152
  print (sen_obj)