Omnibus commited on
Commit
4fdc42e
·
verified ·
1 Parent(s): 31ac05c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -68,7 +68,7 @@ def get_nouns(text=text,steps=1):
68
 
69
  noun_box=[]
70
  for ea in blob.parse().split(" "):
71
- print(ea)
72
  n=ea.split("/")
73
  if n[1] == "NN":
74
  noun_box.append(n[0])
@@ -84,13 +84,14 @@ def get_nouns(text=text,steps=1):
84
  go=True
85
  a="Z"
86
 
87
- div_steps=int(noun_cnt/steps)
 
88
 
89
  print(div_steps)
90
- div_remain=noun_cnt%steps
91
  print(div_remain)
92
  steps_mult=div_remain*char_len
93
- steps_mult=div_remain*char_len
94
  print(steps_mult)
95
 
96
  step_list=[]
 
68
 
69
  noun_box=[]
70
  for ea in blob.parse().split(" "):
71
+ #print(ea)
72
  n=ea.split("/")
73
  if n[1] == "NN":
74
  noun_box.append(n[0])
 
84
  go=True
85
  a="Z"
86
 
87
+ step_allot=char_len*steps
88
+ div_steps=int(noun_cnt/step_allot)
89
 
90
  print(div_steps)
91
+ div_remain=noun_cnt%step_allot
92
  print(div_remain)
93
  steps_mult=div_remain*char_len
94
+ #steps_mult=div_remain*char_len
95
  print(steps_mult)
96
 
97
  step_list=[]