summaryrefslogtreecommitdiff
path: root/word-aligner/aligner.pl
diff options
context:
space:
mode:
authorWaleed Ammar <wammar@cs.cmu.edu>2013-11-13 19:28:07 -0500
committerWaleed Ammar <wammar@cs.cmu.edu>2013-11-13 19:28:07 -0500
commit40e8ba348b3a0af499a754e436fe960f780f4f7e (patch)
tree34d9cbc45fcdfd91af4f77cd7bb7dc44af4efa14 /word-aligner/aligner.pl
parent776b91c04bca9747adf5b056eb13af563aaa5edf (diff)
1) fix the call to ibm model 1 aligner, 2) create a makefile target for generating wordpair features, 3) optionally generate sparse affix features (default behavior is still identical).
Diffstat (limited to 'word-aligner/aligner.pl')
-rwxr-xr-xword-aligner/aligner.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/word-aligner/aligner.pl b/word-aligner/aligner.pl
index cbccb94a..08d95162 100755
--- a/word-aligner/aligner.pl
+++ b/word-aligner/aligner.pl
@@ -86,10 +86,17 @@ PTRAIN_PARAMS = --gaussian_prior --sigma_squared 1.0 --max_iteration 15
#MPIRUN = mpirun -np $(MPIJOBS)
MPIRUN=
+USE_AFFIXES = 0
+
WALLTIME=90
export
+generate-wordpair-features:
+ \@failcom='exit 1'; \\
+ (cd grammars && make USE_AFFIXES=\$(USE_AFFIXES) ) || eval \$\$failcom;
+ cd ..
+
all:
\@failcom='exit 1'; \\
list='\$(TARGETS)'; for subdir in \$\$list; do \\