Omnibus commited on
Commit
b221e2d
·
verified ·
1 Parent(s): 179044f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def proc_nouns(sen_list):
34
  try:
35
  for nnn in sen_list[nn]['nouns']:
36
  print(nnn)
37
- if nnn in list(noun_list.keys()):
38
  noun_list[str(nnn)]=noun_list[str(nnn)].append(nn)
39
  else:
40
  noun_list[str(nnn)]=[nn]
 
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]