-
-
Notifications
You must be signed in to change notification settings - Fork 273
/
tox.ini
84 lines (65 loc) · 2.03 KB
/
tox.ini
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
75
76
77
78
79
80
81
82
83
84
[tox]
envlist = traditional,deep,prompt,langdetect
[testenv:traditional]
basepython = python3.7
deps=
pip>=20.3
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/underthesea
commands =
python -m unittest discover tests.pipeline.sent_tokenize
python -m unittest discover tests.pipeline.text_normalize
python -m unittest discover tests.pipeline.word_tokenize
python -m unittest discover tests.pipeline.pos_tag
python -m unittest discover tests.pipeline.chunking
python -m unittest tests.pipeline.ner.test_ner
python -m unittest discover tests.dictionary
python -m unittest discover tests.feature_engineering
python tests/test_data_fetcher.py
python -m unittest discover tests.corpus
; classification module
python -m unittest tests.pipeline.classification.test_bank
python -m unittest tests.pipeline.classification.test_vntc
; sentiment module
python -m unittest discover tests.pipeline.sentiment
; command lines
underthesea list-data
underthesea list-data --all
underthesea list-model
underthesea download-data VNTC
[testenv:deep]
basepython = python3.7
deps=
pip>=20.3
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/underthesea
commands =
; Modules with deep learning
pip install -e .[deep]
; ner module
python -m unittest tests.pipeline.ner.test_ner_deep
; dependency_parse module
python -m unittest discover tests.pipeline.dependency_parse
[testenv:prompt]
basepython = python3.7
deps=
pip>=20.3
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/underthesea
OPENAI_API_KEY = {env:OPENAI_API_KEY:}
commands =
; Modules with prompt
pip install -e .[prompt]
; prompt module
python -m unittest tests.pipeline.classification.test_prompt
[testenv:langdetect]
basepython = python3.7
deps=
pip>=20.3
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/underthesea
commands =
; install dependencies
pip install -e .[langdetect]
; lang_detect module
python -m unittest tests.pipeline.lang_detect.test_lang_detect