nickmuchi commited on
Commit
90688c1
1 Parent(s): 173ed2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -16,9 +16,11 @@ import docx2txt
16
  from io import StringIO
17
  from PyPDF2 import PdfFileReader
18
  import warnings
19
- import nltk.data
20
 
21
- tokenizer = nltk.data.load('tokenizers/punkt/english.pickle')
 
 
22
 
23
  warnings.filterwarnings("ignore")
24
 
 
16
  from io import StringIO
17
  from PyPDF2 import PdfFileReader
18
  import warnings
19
+ import nltk
20
 
21
+ nltk.download('punkt')
22
+
23
+ from nltk import sent_tokenize
24
 
25
  warnings.filterwarnings("ignore")
26