Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
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]=
|
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)
|