forked from fani-lab/LADy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
71 lines (62 loc) · 1.86 KB
/
pyproject.toml
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
[tool.poetry]
name = "LADy"
version = "0.1.0"
description = "A System for Latent Aspect Detection"
authors = ["Farinam Hemmatizadeh <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "~3.8.1"
pandas = "^1.4.4"
spacy = "^3.3.1"
typing_extensions = "^4.4.0"
tqdm = ">=4.64.1"
scikit-learn = "^1.0.0"
nltk = "^3.7"
transformers = "^4.26.1"
simalign = "^0.3"
gensim = "^4.0"
bitermplus = "^0.6.10"
contextualized_topic_models = "2.5.0"
natsort = "^8.4.0"
seaborn = "^0.12.2"
rouge = "^1.0.1"
sentence-transformers = "^2.2.2"
pytrec-eval-terrier = "^0.5.5"
numpy = "1.23"
bert-e2e-absa = { git = "https://github.com/fani-lab/BERT-E2E-ABSA.git" }
flask-cors = "^4.0.0"
flask = "^3.0.0"
torch = { version = "1.13.1", source = "pytorch" }
pampy = "^0.3.0"
more-itertools = "^10.1.0"
returns = "^0.22.0"
sentencepiece = "^0.1.99"
deep-translator = "^1.11.4"
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.22.1"
[[tool.poetry.source]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cu117"
priority = "explicit"
[tool.poe.tasks]
# This is a workaround which simalign needs networkx 2.4 and this version of nx has conflict in its
install__networkx = "pip install networkx==3.1"
install__spacy = "python -m spacy download en_core_web_sm"
install__stop_words = "python -m nltk.downloader stopwords"
install__punkt = "python -m nltk.downloader punkt"
install__octis.shell = "cd src/octis && python3 setup.py install"
install__web.shell = "cd src/web/frontend && npm install"
post_install = [
"install__networkx",
"install__spacy",
"install__stop_words",
"install__punkt",
"install__octis",
"install__web",
]
dummy.shell = "cd src && python main_exp_slim.py"
start_web_back.shell = "python src/web/backend/app.py"
start_web_front.shell = "cd src/web/frontend && npm run dev"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"