Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -125,18 +125,24 @@ def get_nouns(text=text,steps=1):
|
|
125 |
if go1==True:
|
126 |
step_cont_box[ii-1]=step_cont_box[ii-1]+1
|
127 |
go1=False
|
128 |
-
|
129 |
-
#pos-=1
|
130 |
cnt=1
|
131 |
else:
|
132 |
-
#step_cont_box[pos]=control_char[cnt]
|
133 |
step_cont_box[pos]=cnt
|
134 |
cnt+=1
|
135 |
print(step_cont_box)
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
big_cnt+=1
|
137 |
if big_cnt==noun_cnt:
|
138 |
print("DONE")
|
139 |
go=False
|
|
|
|
|
|
|
140 |
return json_object,noun_list
|
141 |
|
142 |
|
|
|
125 |
if go1==True:
|
126 |
step_cont_box[ii-1]=step_cont_box[ii-1]+1
|
127 |
go1=False
|
|
|
|
|
128 |
cnt=1
|
129 |
else:
|
|
|
130 |
step_cont_box[pos]=cnt
|
131 |
cnt+=1
|
132 |
print(step_cont_box)
|
133 |
+
out_js=""
|
134 |
+
for j in step_cont_box:
|
135 |
+
out_js = out_js+str(j)
|
136 |
+
|
137 |
+
json_object[out_js]={'nouns':ea}
|
138 |
+
|
139 |
big_cnt+=1
|
140 |
if big_cnt==noun_cnt:
|
141 |
print("DONE")
|
142 |
go=False
|
143 |
+
|
144 |
+
|
145 |
+
|
146 |
return json_object,noun_list
|
147 |
|
148 |
|