Skip to content

Commit 09f804b

Browse files
authored
requiring ntlk at least 3.9.1; making associated change from punkt to punkt_tab (#102)
1 parent d48d7c1 commit 09f804b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pvops/text/preprocess.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
from datetime import datetime, timedelta
88

99
try:
10-
nltk.data.find('tokenizers/punkt')
10+
nltk.data.find('tokenizers/punkt_tab')
1111
except LookupError:
12-
nltk.download('punkt')
12+
nltk.download('punkt_tab')
1313

1414
def preprocessor(
1515
om_df, lst_stopwords, col_dict, print_info=False, extract_dates_only=False

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pandas
33
numpy
44
scipy
55
scikit-learn
6-
nltk
6+
nltk>=3.9.1
77
datefinder
88
matplotlib
99
seaborn

0 commit comments

Comments
 (0)