Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
-
"""
|
|
|
3 |
|
4 |
## IMPORTING LIBRARIES
|
5 |
"""
|
@@ -20,6 +21,8 @@ from nltk.tokenize import word_tokenize,sent_tokenize
|
|
20 |
from nltk.corpus import stopwords
|
21 |
from nltk.stem.porter import PorterStemmer
|
22 |
from nltk.stem import WordNetLemmatizer
|
|
|
|
|
23 |
from tika import parser
|
24 |
from nltk.corpus import stopwords
|
25 |
from nltk.tokenize import word_tokenize
|
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
+
"""
|
3 |
+
# MANIFESTO ANALYSIS
|
4 |
|
5 |
## IMPORTING LIBRARIES
|
6 |
"""
|
|
|
21 |
from nltk.corpus import stopwords
|
22 |
from nltk.stem.porter import PorterStemmer
|
23 |
from nltk.stem import WordNetLemmatizer
|
24 |
+
import tika
|
25 |
+
tika.initVM()
|
26 |
from tika import parser
|
27 |
from nltk.corpus import stopwords
|
28 |
from nltk.tokenize import word_tokenize
|