Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,7 @@ def proc_sen(sen_list,cnt):
|
|
26 |
return json_object
|
27 |
|
28 |
def proc_nouns(sen_list):
|
|
|
29 |
noun_list={}
|
30 |
for nn in list(sen_list.keys()):
|
31 |
try:
|
@@ -37,6 +38,8 @@ def proc_nouns(sen_list):
|
|
37 |
except Exception as e:
|
38 |
print (e)
|
39 |
pass
|
|
|
|
|
40 |
return noun_list
|
41 |
|
42 |
def get_nouns(text,steps=1):
|
@@ -110,6 +113,7 @@ def get_nouns(text,steps=1):
|
|
110 |
print(j)
|
111 |
out_js = out_js+control_char[j]
|
112 |
sen_obj=proc_sen(sen_list,i)
|
|
|
113 |
#json_out[out_js]={'nouns':ea}
|
114 |
json_out[out_js]=sen_obj
|
115 |
|
|
|
26 |
return json_object
|
27 |
|
28 |
def proc_nouns(sen_list):
|
29 |
+
print("get nouns")
|
30 |
noun_list={}
|
31 |
for nn in list(sen_list.keys()):
|
32 |
try:
|
|
|
38 |
except Exception as e:
|
39 |
print (e)
|
40 |
pass
|
41 |
+
print("done nouns")
|
42 |
+
|
43 |
return noun_list
|
44 |
|
45 |
def get_nouns(text,steps=1):
|
|
|
113 |
print(j)
|
114 |
out_js = out_js+control_char[j]
|
115 |
sen_obj=proc_sen(sen_list,i)
|
116 |
+
print (sen_obj)
|
117 |
#json_out[out_js]={'nouns':ea}
|
118 |
json_out[out_js]=sen_obj
|
119 |
|