forked from pudo/edgar-oil-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 962 Bytes
/
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
make_listing:
python generate_input.py
rm -rf tasks
mkdir tasks
split -l 10 listing.txt tasks/listing
test_import:
python import_filings.py --cleanup=NONE --no-output <test_listing.txt
test_sic_filter:
python sic_filter_filings.py --cleanup=NONE --no-output <filings.txt
test_score:
python score_filings.py --cleanup=NONE --no-output <filings.txt
import:
python import_filings.py -r emr \
--conf-path mrjob.conf \
--output-dir=s3://sec-edgar.openoil.net/filings-13xx/ \
--no-output \
s3://sec-edgar.openoil.net/tasks/
sic_filter:
python sic_filter_filings.py -r emr \
--conf-path mrjob.conf \
--output-dir=s3://sec-edgar.openoil.net/filings-13xx/ \
--no-output \
s3://sec-edgar.openoil.net/filings-all/
score:
python score_filings.py -r emr \
--conf-path mrjob.conf \
--output-dir=s3://sec-edgar.openoil.net/scores/ \
--no-output \
--file searches.txt --file stopwords.txt \
s3://sec-edgar.openoil.net/filings-sample/