Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,12 @@ def proc_nouns(sen_list):
|
|
35 |
if nnn in list(noun_list.keys()):
|
36 |
noun_list[str(nnn)].append(nn)
|
37 |
else:
|
38 |
-
noun_list[str(nnn)]=[nn]
|
|
|
|
|
|
|
|
|
|
|
39 |
except Exception as e:
|
40 |
print (e)
|
41 |
pass
|
|
|
35 |
if nnn in list(noun_list.keys()):
|
36 |
noun_list[str(nnn)].append(nn)
|
37 |
else:
|
38 |
+
noun_list[str(nnn)]=[nn]
|
39 |
+
for nnnn in sen_list[nn]['noun_phrases']:
|
40 |
+
if nnnn in list(noun_list.keys()):
|
41 |
+
noun_list[str(nnnn)].append(nn)
|
42 |
+
else:
|
43 |
+
noun_list[str(nnnn)]=[nn]
|
44 |
except Exception as e:
|
45 |
print (e)
|
46 |
pass
|