-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (67 loc) · 3.43 KB
/
Makefile
File metadata and controls
79 lines (67 loc) · 3.43 KB
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
.ONESHELL:
# Sets the data set source to use for processing the raw data. If set to
# "local", uses `rawdata.zip` that is supplied with the repository. When
# set to "global", queries the latest online version.
SOURCE := "local"
RAWDATA = rawdata/alls-well-that-ends-well_TEIsimple_FolgerShakespeare.xml \
rawdata/a-midsummer-nights-dream_TEIsimple_FolgerShakespeare.xml \
rawdata/antony-and-cleopatra_TEIsimple_FolgerShakespeare.xml \
rawdata/as-you-like-it_TEIsimple_FolgerShakespeare.xml \
rawdata/coriolanus_TEIsimple_FolgerShakespeare.xml \
rawdata/cymbeline_TEIsimple_FolgerShakespeare.xml \
rawdata/hamlet_TEIsimple_FolgerShakespeare.xml \
rawdata/henry-iv-part-1_TEIsimple_FolgerShakespeare.xml \
rawdata/henry-iv-part-2_TEIsimple_FolgerShakespeare.xml \
rawdata/henry-viii_TEIsimple_FolgerShakespeare.xml \
rawdata/henry-vi-part-1_TEIsimple_FolgerShakespeare.xml \
rawdata/henry-vi-part-2_TEIsimple_FolgerShakespeare.xml \
rawdata/henry-vi-part-3_TEIsimple_FolgerShakespeare.xml \
rawdata/henry-v_TEIsimple_FolgerShakespeare.xml \
rawdata/julius-caesar_TEIsimple_FolgerShakespeare.xml \
rawdata/king-john_TEIsimple_FolgerShakespeare.xml \
rawdata/king-lear_TEIsimple_FolgerShakespeare.xml \
rawdata/loves-labors-lost_TEIsimple_FolgerShakespeare.xml \
rawdata/macbeth_TEIsimple_FolgerShakespeare.xml \
rawdata/measure-for-measure_TEIsimple_FolgerShakespeare.xml \
rawdata/much-ado-about-nothing_TEIsimple_FolgerShakespeare.xml \
rawdata/othello_TEIsimple_FolgerShakespeare.xml \
rawdata/pericles_TEIsimple_FolgerShakespeare.xml \
rawdata/richard-iii_TEIsimple_FolgerShakespeare.xml \
rawdata/richard-ii_TEIsimple_FolgerShakespeare.xml \
rawdata/romeo-and-juliet_TEIsimple_FolgerShakespeare.xml \
rawdata/the-comedy-of-errors_TEIsimple_FolgerShakespeare.xml \
rawdata/the-merchant-of-venice_TEIsimple_FolgerShakespeare.xml \
rawdata/the-merry-wives-of-windsor_TEIsimple_FolgerShakespeare.xml \
rawdata/the-taming-of-the-shrew_TEIsimple_FolgerShakespeare.xml \
rawdata/the-tempest_TEIsimple_FolgerShakespeare.xml \
rawdata/the-two-gentlemen-of-verona_TEIsimple_FolgerShakespeare.xml \
rawdata/the-winters-tale_TEIsimple_FolgerShakespeare.xml \
rawdata/timon-of-athens_TEIsimple_FolgerShakespeare.xml \
rawdata/titus-andronicus_TEIsimple_FolgerShakespeare.xml \
rawdata/troilus-and-cressida_TEIsimple_FolgerShakespeare.xml \
rawdata/twelfth-night_TEIsimple_FolgerShakespeare.xml
all: preprocess representations \
plot_toy \
plot_romeo \
plot_graph_rankings plot_hypergraph_rankings \
plot_rank_correlations
plot_rank_correlations: representations
@python3 src/hyperbard/plot_rank_correlations.py
plot_graph_rankings: representations
@python3 src/hyperbard/plot_graph_rankings.py
plot_hypergraph_rankings: representations
@python3 src/hyperbard/plot_hypergraph_rankings.py
plot_romeo: representations
@python3 src/hyperbard/plot_romeo.py
plot_toy: representations
@python3 src/hyperbard/plot_toy.py
representations: preprocess
@python3 src/hyperbard/create_graph_representations.py
@python3 src/hyperbard/create_hypergraph_representations.py
raw_summary_statistics: preprocess
@python3 src/hyperbard/raw_summary_statistics.py
preprocess: $(RAWDATA)
@python3 src/hyperbard/run_preprocessing.py
$(RAWDATA):
@echo "Checking whether raw data needs to be extracted..."
make -C rawdata SOURCE=$(SOURCE)