Spaces:
Sleeping
Sleeping
Commit
·
49bc621
1
Parent(s):
8bfed60
add app
Browse files
app.py
CHANGED
@@ -22,9 +22,9 @@ import streamlit as st
|
|
22 |
# Ensure you've downloaded the set of stop words the first time you run this
|
23 |
import nltk
|
24 |
# only download if they don't exist
|
25 |
-
if not os.path.exists(os.path.join(nltk.data.find('corpora'), 'stopwords')):
|
26 |
-
|
27 |
-
|
28 |
|
29 |
|
30 |
from dataset_loading import load_local_qrels, load_local_corpus, load_local_queries
|
|
|
22 |
# Ensure you've downloaded the set of stop words the first time you run this
|
23 |
import nltk
|
24 |
# only download if they don't exist
|
25 |
+
# if not os.path.exists(os.path.join(nltk.data.find('corpora'), 'stopwords')):
|
26 |
+
nltk.download('punkt')
|
27 |
+
nltk.download('stopwords')
|
28 |
|
29 |
|
30 |
from dataset_loading import load_local_qrels, load_local_corpus, load_local_queries
|