-
Notifications
You must be signed in to change notification settings - Fork 41
/
setup.py
74 lines (69 loc) · 1.85 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
# Heavy dependencies
heavy_dependencies = [
"torch>=2.3.1",
"transformers>=4.9.1",
"pytorch-transformers>=1.1.0",
"tf-estimator-nightly==2.8.0.dev2021122109",
"supar==1.1.2",
]
# Base dependencies for lightweight installation
base_dependencies = [
"bpemb>=0.3.3",
"nltk",
"folium>=0.2.1",
"h5py>=3.3.0",
"Deprecated==1.2.6",
"hyperopt>=0.2.5",
"pyconll>=3.1.0",
"segtok>=1.5.7",
"tabulate>=0.8.6",
"gensim>=3.6.0",
"conllu",
"gdown>=4.3.1",
"py7zr>=0.17.2",
"html2text",
"scikit-learn>=0.24.2",
"numpy",
"protobuf",
"requests",
"tqdm>=4.27",
"langid==1.1.6",
"filelock",
"tokenizers>=0.7.0",
"regex != 2019.12.17",
"packaging",
"sentencepiece",
"sacremoses",
"fasttext-wheel",
"kenlm",
"emoji==2.10.0",
"pandas",
]
# Combine base and heavy dependencies for the default installation
default_dependencies = base_dependencies + heavy_dependencies
setuptools.setup(
name="dadmatools",
version="2.1.3",
author="Dadmatech AI Company",
author_email="info@dadmatech.ir",
description="DadmaTools is a Persian NLP toolkit",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Dadmatech/DadmaTools",
packages=setuptools.find_packages(),
install_requires=default_dependencies, # Default to all dependencies
extras_require={
"light": base_dependencies, # Lightweight installation option
},
dependency_links=[
"git+https://github.com/kpu/kenlm@master#egg=kenlm",
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License ",
"Operating System :: OS Independent",
],
)