Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,12 +34,12 @@ def proc_nouns(sen_list):
|
|
34 |
try:
|
35 |
for nnn in sen_list[nn]['nouns']:
|
36 |
if nnn in list(noun_list.keys()):
|
37 |
-
noun_list[str(nnn)]=
|
38 |
else:
|
39 |
noun_list[str(nnn)]=[nn]
|
40 |
for nnnn in sen_list[nn]['noun_phrase']:
|
41 |
if nnnn in list(noun_list.keys()):
|
42 |
-
noun_list[str(nnnn)]=
|
43 |
else:
|
44 |
noun_list[str(nnnn)]=[nn]
|
45 |
except Exception as e:
|
|
|
34 |
try:
|
35 |
for nnn in sen_list[nn]['nouns']:
|
36 |
if nnn in list(noun_list.keys()):
|
37 |
+
noun_list[str(nnn)]=nn
|
38 |
else:
|
39 |
noun_list[str(nnn)]=[nn]
|
40 |
for nnnn in sen_list[nn]['noun_phrase']:
|
41 |
if nnnn in list(noun_list.keys()):
|
42 |
+
noun_list[str(nnnn)]=nn
|
43 |
else:
|
44 |
noun_list[str(nnnn)]=[nn]
|
45 |
except Exception as e:
|