Spaces:
Runtime error
Runtime error
File size: 3,147 Bytes
8044721 |
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 107 108 109 110 111 112 113 |
.PHONY: amr/pdf dm/pdf eds/pdf psd/pdf ucca/pdf \
clean release all
amr/wsj.mrp: wsj.ids ../wsj.txt amr/wsj.amr
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read amr \
--id $$i --write mrp ./amr/wsj.amr; \
done > $@;
amr/pdf:
[ ! -d amr/dot ] && mkdir amr/dot;
[ ! -d amr/pdf ] && mkdir amr/pdf;
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read amr \
--id $$i --write dot \
./amr/wsj.amr ./amr/dot/$$i.dot; \
done
rm $$(find ./amr/dot -size 0);
for i in ./amr/dot/*.dot; do \
j=$$(basename $$i .dot); \
dot -Tpdf $$i > ./amr/pdf/$${j}.pdf; \
done
dm/wsj.mrp: wsj.ids ../wsj.txt dm/wsj.sdp
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read dm \
--id $$i --write mrp ./dm/wsj.sdp; \
done > $@;
dm/pdf:
[ ! -d dm/dot ] && mkdir dm/dot;
[ ! -d dm/pdf ] && mkdir dm/pdf;
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read dm \
--id $$i --write dot \
./dm/wsj.sdp ./dm/dot/$$i.dot; \
done
for i in ./dm/dot/*.dot; do \
j=$$(basename $$i .dot); \
dot -Tpdf $$i > ./dm/pdf/$${j}.pdf; \
done
eds/wsj.mrp: wsj.ids ../wsj.txt eds/wsj.eds
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read eds \
--id $$i --write mrp ./eds/wsj.eds; \
done > $@;
eds/pdf:
[ ! -d eds/dot ] && mkdir eds/dot;
[ ! -d eds/pdf ] && mkdir eds/pdf;
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read eds \
--id $$i --write dot \
./eds/wsj.eds ./eds/dot/$$i.dot; \
done
for i in ./eds/dot/*.dot; do \
j=$$(basename $$i .dot); \
dot -Tpdf $$i > ./eds/pdf/$${j}.pdf; \
done
psd/wsj.mrp: wsj.ids ../wsj.txt psd/wsj.sdp
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read psd \
--id $$i --write mrp ./psd/wsj.sdp; \
done > $@;
psd/pdf:
[ ! -d psd/dot ] && mkdir psd/dot;
[ ! -d psd/pdf ] && mkdir psd/pdf;
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read dm \
--id $$i --write dot \
./psd/wsj.sdp ./psd/dot/$$i.dot; \
done
for i in ./psd/dot/*.dot; do \
j=$$(basename $$i .dot); \
dot -Tpdf $$i > ./psd/pdf/$${j}.pdf; \
done
ucca/wsj.mrp: wsj.ids ../wsj.txt ucca/xml/files.txt ucca/xml/*.xml
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read ucca \
--id $$i --write mrp ./ucca/xml/files.txt; \
done > $@;
ucca/pdf:
[ ! -d ucca/dot ] && mkdir ucca/dot;
[ ! -d ucca/pdf ] && mkdir ucca/pdf;
for i in $$(cat wsj.ids); do \
../../main.py --text ../wsj.txt --read ucca \
--id $$i --write dot --strings \
./ucca/xml/files.txt ./ucca/dot/$$i.dot; \
done
rm $$(find ./ucca/dot -size 0);
for i in ./ucca/dot/*.dot; do \
j=$$(basename $$i .dot); \
dot -Tpdf $$i > ./ucca/pdf/$${j}.pdf; \
done
clean:
rm */wsj.mrp */dot/*.dot */pdf/*pdf
release:
tar zpScvf ../public/sample.tgz --transform='s@^@mrp/2019/sample/@'\
README.txt Makefile \
amr/wsj.mrp dm/wsj.mrp eds/wsj.mrp psd/wsj.mrp ucca/wsj.mrp \
amr/dot amr/pdf dm/dot dm/pdf eds/dot eds/pdf \
psd/dot psd/pdf ucca/dot ucca/pdf
all: amr/wsj.mrp dm/wsj.mrp eds/wsj.mrp psd/wsj.mrp ucca/wsj.mrp
|