Spaces:
Running
Running
nltk bs
Browse filesSigned-off-by: peter szemraj <peterszemraj@gmail.com>
app.py
CHANGED
@@ -34,12 +34,9 @@ from utils import load_example_filenames, saves_summary, truncate_word_count
|
|
34 |
|
35 |
_here = Path(__file__).parent
|
36 |
|
37 |
-
|
38 |
-
nltk.download(
|
39 |
-
|
40 |
-
force=True,
|
41 |
-
download_dir=str(_here / "nltk_data"),
|
42 |
-
)
|
43 |
|
44 |
|
45 |
MODEL_OPTIONS = [
|
|
|
34 |
|
35 |
_here = Path(__file__).parent
|
36 |
|
37 |
+
os.environ["NLTK_DATA"] = str(_here / "nltk_data")
|
38 |
+
nltk.download("punkt", force=True, download_dir=os.environ["NLTK_DATA"], quiet=True)
|
39 |
+
nltk.download("popular", force=True, download_dir=os.environ["NLTK_DATA"])
|
|
|
|
|
|
|
40 |
|
41 |
|
42 |
MODEL_OPTIONS = [
|