-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (34 loc) · 1.38 KB
/
Makefile
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
python = python3
fileid = 1tW7sinuEwo-Fij9j5fgDKdIblgVEcEBf
# ========== Default Rule ==========
all: setup collect process analyze
# ========== Setup ==========
setup: requirements.txt assets/
assets/: requirements.txt
pip install -r requirements.txt
mkdir -p assets/images
# ========== Collect ==========
collect: setup assets/company_reviews.csv
assets/company_reviews.csv: assets/
curl -L -o assets/company_reviews.csv "https://drive.google.com/uc?export=download&id=$(fileid)"
# ========== Process ==========
process: collect assets/cleaned_reviews.csv assets/processed_reviews.csv assets/processed_reviews.json
assets/cleaned_reviews.csv: assets/company_reviews.csv
$(python) src/clean.py
assets/processed_reviews.csv: assets/cleaned_reviews.csv
$(python) src/processing.py
assets/processed_reviews.json: assets/cleaned_reviews.csv
$(python) src/processing.py
# ========== Analyze ==========
analyze: analyzeOriginal analyzeStatistics analyzeWords analyzeGraphs
analyzeOriginal: assets/company_reviews.csv
$(python) src/analyzeOriginal.py
analyzeStatistics: assets/processed_reviews.csv
$(python) src/analyzeStatistics.py
analyzeWords: assets/processed_reviews.csv
$(python) src/analyzeWords.py
analyzeGraphs: assets/processed_reviews.csv
$(python) src/analyzeGraphs.py
# ========== Clean ==========
clean:
rm -rf assets