Skip to content

Commit f6c8ee3

Browse files
committed
Add downloader
1 parent 173889f commit f6c8ee3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Wood, T.A., Fast Stylometry [Computer software], Version 1.0.2, accessed at [htt
200200
```
201201
@unpublished{faststylometry,
202202
AUTHOR = {Wood, T.A.},
203-
TITLE = {Fast Stylometry (Computer software), Version 1.0.3},
203+
TITLE = {Fast Stylometry (Computer software), Version 1.0.4},
204204
YEAR = {2023},
205205
Note = {To appear},
206206
}

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
],
6868
python_requires=">=3.6",
6969
install_requires=[
70-
'numpy==1.24.3',
71-
'pandas==2.1.0',
72-
'scikit-learn==1.3.0',
73-
'wget==3.2',
70+
'numpy<=1.24.3,>=1.18',
71+
'pandas<=2.1.0,>=1.5.3',
72+
'scikit-learn<=1.3.0,>=1.2.0',
73+
'wget>=3.0,<4.0',
7474
],
7575
extras_require={
7676
"dev": ["check-manifest"],

src/faststylometry/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
'''
2929

30-
__version__ = "1.0.3"
30+
__version__ = "1.0.4"
3131

3232

3333
from faststylometry.corpus import Corpus

src/faststylometry/examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ def download_examples():
5656
os.makedirs(data_path)
5757

5858
if os.path.exists("data/train") and len(os.listdir("data/train")) > 0:
59-
print("data/train is not empty. Exiting the downloader.") #
59+
print("data/train is not empty. If you want to download the example corpus, please delete or rename this folder.") #
6060
return
6161
if os.path.exists("data/test") and len(os.listdir("data/test")) > 0:
62-
print("data/test is not empty. Exiting the downloader.") #
62+
print("data/test is not empty. If you want to download the example corpus, please delete or rename this folder.") #
6363
return
6464

6565
url = 'https://raw.githubusercontent.com/fastdatascience/faststylometry/main/data/train_test.zip'

0 commit comments

Comments
 (0)