Omnibus commited on
Commit
33aed6f
·
verified ·
1 Parent(s): ecd64c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -22,7 +22,8 @@ def proc_sen(sen_list,cnt):
22
  for ea in blob_n.parse().split(" "):
23
  n=ea.split("/")
24
  if n[1] == "NN":
25
- noun_box1.append(n[0])
 
26
  json_object={'sen_num':cnt,'sentence':str(sen_list[cnt]),'noun_phrase':noun_p.copy(),'nouns':noun_box1}
27
  return json_object
28
 
 
22
  for ea in blob_n.parse().split(" "):
23
  n=ea.split("/")
24
  if n[1] == "NN":
25
+ if not n[0] in noun_box1:
26
+ noun_box1.append(n[0])
27
  json_object={'sen_num':cnt,'sentence':str(sen_list[cnt]),'noun_phrase':noun_p.copy(),'nouns':noun_box1}
28
  return json_object
29