ksvmuralidhar commited on
Commit
9a7b713
1 Parent(s): a8a5f5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -201,6 +201,7 @@ def summ_preprocess(txt):
201
  txt = txt.replace('--', ' ')
202
  txt = re.sub(r'^\s*[\,\.\:\'\;\|]', ' ', txt) # remove puncts at beginning of sent
203
  txt = re.sub(r' [\,\.\:\'\;\|] ', ' ', txt) # remove puncts with spaces before and after
 
204
  txt = " ".join(txt.split())
205
  return txt
206
 
 
201
  txt = txt.replace('--', ' ')
202
  txt = re.sub(r'^\s*[\,\.\:\'\;\|]', ' ', txt) # remove puncts at beginning of sent
203
  txt = re.sub(r' [\,\.\:\'\;\|] ', ' ', txt) # remove puncts with spaces before and after
204
+ txt = re.sub(r'\n+',' ', txt)
205
  txt = " ".join(txt.split())
206
  return txt
207