Shredder commited on
Commit
4390c00
1 Parent(s): e395983

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -80,6 +80,10 @@ def summarize_text(text):
80
  stext = resp[0]['summary_text']
81
  return stext
82
 
 
 
 
 
83
  ##Forward Looking Statement
84
  fls_model = pipeline("text-classification", model="yiyanghkust/finbert-fls", tokenizer="yiyanghkust/finbert-fls")
85
  def fls(text):
 
80
  stext = resp[0]['summary_text']
81
  return stext
82
 
83
+
84
+ def split_in_sentences(text):
85
+ doc = nlp(text)
86
+ return [str(sent).strip() for sent in doc.sents]
87
  ##Forward Looking Statement
88
  fls_model = pipeline("text-classification", model="yiyanghkust/finbert-fls", tokenizer="yiyanghkust/finbert-fls")
89
  def fls(text):