-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathMakefile
106 lines (79 loc) · 2.29 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Makefile for Termite Data Server
#
# This file is intended for development use only.
# All tools and folder structures should be ready for use, as they're stored in the git repo.
#
################################################################################
# Default configuration
# Install web2py framework
# Install MALLET toolkit
# Build all utilities
# Build all demos
all: web2py tools utils
################################################################################
# Web framework
web2py:
bin/setup_web2py.sh
################################################################################
# Topic modeling tools
# mallet, treetm, stm, gensim, stmt
tools: tools/mallet tools/treetm tools/stm tools/gensim tools/stmt tools/corenlp
tools/corenlp: utils
bin/setup_corenlp.sh
tools/gensim:
bin/setup_gensim.sh
tools/mallet: utils
bin/setup_mallet.sh
tools/stmt:
bin/setup_stmt.sh
tools/stm:
bin/setup_stm.sh
tools/treetm:
bin/setup_treetm.sh
################################################################################
# Demos
# Download and build an LDA model using a provided dataset
demo:
./demo.py infovis mallet
demos:
./demo.py infovis gensim
./demo.py infovis treetm
./demo.py poliblogs stm
more-demos:
./demo.py poliblogs mallet
./demo.py fomc mallet
./demo.py 20newsgroups mallet
nsf-demos:
./demo.py nsf1k mallet
./demo.py nsf10k mallet
./demo.py nsf25k mallet
cappp-demos:
./demo.py CR_financial_collapse
./demo.py CR_stock_market_plunge
./demo.py FCIC_final_report
./demo.py FCIC_first_hearing
./demo.py FR_federal_open_market_committee
./demo.py FR_monetary_policy_hearings
itm-demos:
./demo.py nsf1k treetm
./demo.py nsf10k treetm
./demo.py nsf25k treetm
./demo.py 20newsgroups treetm
stm-demos:
./demo.py fomc stm
./demo.py gjp stm
large-demos:
./demo.py nsfgrants mallet
./demo.py congress_bills
./demo.py major_legislations
################################################################################
# Other utilities
utils: utils/mallet/CorpusWriter.jar utils/corenlp/SentenceSplitter.jar
utils/mallet/CorpusWriter.jar:
$(MAKE) -C utils/mallet
utils/corenlp/SentenceSplitter.jar:
$(MAKE) -C utils/corenlp
################################################################################
clean:
rm -rf externals
rm -rf tools