Omnibus commited on
Commit
6d812d3
·
verified ·
1 Parent(s): a9a3f95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,13 +35,13 @@ def proc_nouns(sen_list):
35
  for nnn in sen_list[nn]['nouns']:
36
  print(nnn)
37
  if nnn in list(noun_list.keys()):
38
- noun_list[str(nnn)]=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)]=nn
45
  else:
46
  noun_list[str(nnnn)]=[nn]
47
  except Exception as e:
 
35
  for nnn in sen_list[nn]['nouns']:
36
  print(nnn)
37
  if nnn in list(noun_list.keys()):
38
+ noun_list[str(nnnn)]=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:
46
  noun_list[str(nnnn)]=[nn]
47
  except Exception as e: