Omnibus commited on
Commit
4f38a9b
·
verified ·
1 Parent(s): f3a1334

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)]=noun_list[str(nnn)].append(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)]=noun_list[str(nnnn)].append(nn)
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: