-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.semcor
38 lines (32 loc) · 1020 Bytes
/
Makefile.semcor
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
.SECONDARY:
.EXPORT_ALL_VARIABLES:
print-%:
@echo $*=$($*)
# Workdirs
WORK=work
STIFFWORK=${WORK}/stiff
EUROPARLWORK=${WORK}/eurosense
# SemCor
SEMCORIN=${WORK}/semcorin
SEMCOROUT=${WORK}/semcorout
BP4EVAL=${STIFFWORK}/bp4-wsd-eval
BR4EVAL=${STIFFWORK}/br4-wsd-eval
EUROPARLEVAL=${EUROPARLWORK}/wsd-eval
EVALSYNSETS = ${WORK}/evalsynsets.pkl
${EVALSYNSETS}: ${BP4EVAL} ${BR4EVAL} ${EUROPARLEVAL}
python scripts/munge.py extract-words --synsets \
${BP4EVAL}/test/corpus.sup.xml ${BP4EVAL}/dev/corpus.sup.xml \
${BR4EVAL}/test/corpus.sup.xml ${BR4EVAL}/dev/corpus.sup.xml \
${EUROPARLEVAL}/test/corpus.sup.xml ${EUROPARLEVAL}/dev/corpus.sup.xml $@
${SEMCOROUT}: ${EVALSYNSETS} | ${SEMCORIN}
mkdir -p ${SEMCOROUT}
python scripts/pipeline.py \
unified-to-sup \
${SEMCORIN}/semcor.data.xml \
${SEMCORIN}/semcor.gold.key.txt \
${SEMCOROUT}/corpus.sup.xml \
${SEMCOROUT}/corpus.sup.3.key \
${SEMCOROUT}/corpus.sup.key \
${SEMCOROUT}/corpus.sup.tag.xml \
--semcor \
--filter-key ${EVALSYNSETS}