-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile-latentCrfPosTagger
43 lines (32 loc) · 2.53 KB
/
Makefile-latentCrfPosTagger
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
CC=mpiCC
SINGLE=-c
BEFORE=-x c++ -std=c++11
LIBS=-lfst -ldl -lboost_mpi -lboost_program_options -lboost_serialization -lboost_thread -lboost_system -lrt
#-llbfgs
OPT=-O3 -DNDEBUG
# -g
all: train-latentCrfPosTagger
# specific to the pos tagging task
train-latentCrfPosTagger: train-latentCrfPosTagger.o lbfgs.o
$(CC) train-latentCrfPosTagger.o HmmModel.o FstUtils.o LatentCrfModel.o LatentCrfPosTagger.o LogLinearParams.o fdict.o lbfgs.o $(LIBS) -o parts-of-speech/train-latentCrfPosTagger
train-latentCrfPosTagger.o: HmmModel.o LatentCrfModel.o LatentCrfPosTagger.o parts-of-speech/train-latentCrfPosTagger.cc wammar-utils/ClustersComparer.h wammar-utils/StringUtils.h core/LearningInfo.h core/BasicTypes.h wammar-utils/FstUtils.h
$(CC) $(BEFORE) $(SINGLE) parts-of-speech/train-latentCrfPosTagger.cc $(OPT)
LatentCrfPosTagger.o: LatentCrfModel.o parts-of-speech/LatentCrfPosTagger.h parts-of-speech/LatentCrfPosTagger.cc core/BasicTypes.h
$(CC) $(BEFORE) $(SINGLE) parts-of-speech/LatentCrfPosTagger.cc $(OPT)
# shared code
LatentCrfModel.o: FstUtils.o LogLinearParams.o core/LatentCrfModel.cc core/LatentCrfModel.h core/LatentCrfModel-inl.h wammar-utils/Samplers.h core/VocabEncoder.h core/UnsupervisedSequenceTaggingModel.h core/LearningInfo.h core/Functors.h cdec-utils/dict.h cdec-utils/fdict.h cdec-utils/fast_sparse_vector.h core/MultinomialParams.h core/BasicTypes.h wammar-utils/StringUtils.h
$(CC) $(BEFORE) $(SINGLE) core/LatentCrfModel.cc $(OPT)
LogLinearParams.o: fdict.o core/LogLinearParams.cc core/LogLinearParams.h core/LogLinearParams-inl.h core/BasicTypes.h core/VocabEncoder.h
$(CC) $(BEFORE) $(SINGLE) core/LogLinearParams.cc $(OPT)
HmmModel.o: FstUtils.o core/HmmModel.cc core/HmmModel.h core/LearningInfo.h wammar-utils/StringUtils.h core/MultinomialParams.h core/BasicTypes.h
$(CC) $(BEFORE) $(SINGLE) core/HmmModel.cc $(OPT)
IbmModel1.o: FstUtils.o alignment/IbmModel1.cc alignment/IbmModel1.h core/LearningInfo.h wammar-utils/StringUtils.h alignment/IAlignmentModel.h core/MultinomialParams.h core/VocabEncoder.h core/BasicTypes.h
$(CC) $(BEFORE) $(SINGLE) alignment/IbmModel1.cc $(OPT)
FstUtils.o: wammar-utils/FstUtils.cc wammar-utils/FstUtils.h core/BasicTypes.h
$(CC) $(BEFORE) $(SINGLE) wammar-utils/FstUtils.cc $(OPT)
fdict.o:
$(CC) $(BEFORE) $(SINGLE) cdec-utils/fdict.cc $(OPT)
lbfgs.o:
$(CC) $(BEFORE) $(SINGLE) /usr0/home/wammar/git/liblbfgs/lib/lbfgs.c $(OPT)
clean:
rm -rf FstUtils.o HmmModel.o fdict.o LogLinearParams.o LatentCrfModel.o train-latentCrfPosTagger.o train-latentCrfPosTagger LatentCrfPosTagger.o IbmModel1.o lbfgs.o