Spaces:
Runtime error
Runtime error
EmreYY20
commited on
Commit
•
6fadf04
1
Parent(s):
3d33419
update
Browse files- extractive_model.py +2 -0
- requirements.txt +0 -0
extractive_model.py
CHANGED
@@ -13,6 +13,8 @@ import PyPDF2
|
|
13 |
from sumy.parsers.plaintext import PlaintextParser
|
14 |
from sumy.nlp.tokenizers import Tokenizer
|
15 |
from sumy.summarizers.text_rank import TextRankSummarizer
|
|
|
|
|
16 |
|
17 |
def summarize_pdf_with_textrank(pdf_path, sentences_count=10):
|
18 |
"""
|
|
|
13 |
from sumy.parsers.plaintext import PlaintextParser
|
14 |
from sumy.nlp.tokenizers import Tokenizer
|
15 |
from sumy.summarizers.text_rank import TextRankSummarizer
|
16 |
+
import nltk
|
17 |
+
nltk.download('punkt')
|
18 |
|
19 |
def summarize_pdf_with_textrank(pdf_path, sentences_count=10):
|
20 |
"""
|
requirements.txt
CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
|
|