Gabriel commited on
Commit
8e1af49
1 Parent(s): c35169a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -7,6 +7,9 @@ from sentence_transformers import SentenceTransformer, util
7
  import numpy as np
8
  from LexRank import *
9
 
 
 
 
10
  def lex_rank(in_text, threshold=None , ex_sent=4 ,model_in = 'KBLab/sentence-bert-swedish-cased', language='swedish' ):
11
  if threshold == 'None':
12
  threshold=None
 
7
  import numpy as np
8
  from LexRank import *
9
 
10
+ nltk.download('punkt')
11
+
12
+
13
  def lex_rank(in_text, threshold=None , ex_sent=4 ,model_in = 'KBLab/sentence-bert-swedish-cased', language='swedish' ):
14
  if threshold == 'None':
15
  threshold=None