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