-
Notifications
You must be signed in to change notification settings - Fork 15
/
fabfile.py
71 lines (42 loc) · 1.15 KB
/
fabfile.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
from fabric.api import local
def lint():
local("black -l 80 fabfile.py pipeline_src")
local("flake8 pipeline_src --ignore=E501,E203,W503,E402")
def import_data():
local("python pipeline_src import_data")
def phrase():
local("python pipeline_src phrase")
def parse():
local("python pipeline_src parse")
def embed():
local("python pipeline_src embed")
def score():
local("python pipeline_src score")
def predict():
local("python pipeline_src predict")
def cluster():
local("python pipeline_src cluster")
def metacluster():
local("python pipeline_src metacluster")
def analyze():
local("python pipeline_src analyze")
def LIME():
local("python pipeline_src analyze LIME")
def test():
clean()
import_data()
phrase()
parse()
embed()
score()
metacluster()
analyze()
predict()
def clean():
local('find . -name "*~" | xargs -I {} rm {}')
local('find . -name "*.pyc" | xargs -I {} rm {}')
local("rm -rvf w2v.egg-info")
local(
"rm -rf data_import data_parsed data_document_scores "
"data_clustering data_embeddings data_predict results"
)