Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def proc_sen(sen_list,cnt):
|
|
23 |
n=ea.split("/")
|
24 |
if n[1] == "NN":
|
25 |
noun_box1.append(n[0])
|
26 |
-
json_object={'sen_num':cnt,'sentence':sen_list[cnt],'noun_phrase':
|
27 |
return json_object
|
28 |
|
29 |
def proc_nouns(sen_list):
|
|
|
23 |
n=ea.split("/")
|
24 |
if n[1] == "NN":
|
25 |
noun_box1.append(n[0])
|
26 |
+
json_object={'sen_num':cnt,'sentence':str(sen_list[cnt]),'noun_phrase':noun_p.copy(),'nouns':noun_box1}
|
27 |
return json_object
|
28 |
|
29 |
def proc_nouns(sen_list):
|