Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,14 +32,15 @@ def proc_nouns(sen_list):
|
|
32 |
noun_list={}
|
33 |
for nn in list(sen_list.keys()):
|
34 |
try:
|
|
|
35 |
for nnn in sen_list[nn]['nouns']:
|
36 |
-
print(nnn)
|
37 |
if noun_list.get(nnn) != None:
|
38 |
noun_list[str(nnn)]=noun_list[str(nnn)].append(nn)
|
39 |
else:
|
40 |
noun_list[str(nnn)]=[nn]
|
41 |
for nnnn in sen_list[nn]['noun_phrase']:
|
42 |
-
print(nnnn)
|
43 |
if nnnn in list(noun_list.keys()):
|
44 |
noun_list[str(nnnn)]=noun_list[str(nnnn)].append(nn)
|
45 |
else:
|
|
|
32 |
noun_list={}
|
33 |
for nn in list(sen_list.keys()):
|
34 |
try:
|
35 |
+
print(sen_list[nn]['nouns'])
|
36 |
for nnn in sen_list[nn]['nouns']:
|
37 |
+
#print(nnn)
|
38 |
if noun_list.get(nnn) != None:
|
39 |
noun_list[str(nnn)]=noun_list[str(nnn)].append(nn)
|
40 |
else:
|
41 |
noun_list[str(nnn)]=[nn]
|
42 |
for nnnn in sen_list[nn]['noun_phrase']:
|
43 |
+
#print(nnnn)
|
44 |
if nnnn in list(noun_list.keys()):
|
45 |
noun_list[str(nnnn)]=noun_list[str(nnnn)].append(nn)
|
46 |
else:
|