Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|