diff options
author | Waleed Ammar <wammar@cs.cmu.edu> | 2013-11-13 19:28:07 -0500 |
---|---|---|
committer | Waleed Ammar <wammar@cs.cmu.edu> | 2013-11-13 19:28:07 -0500 |
commit | 8bdea2036a924302a569722359106a2d8a51fb17 (patch) | |
tree | bb14849f101a9e96939ec73c8d82ef40c128a435 /word-aligner/aligner.pl | |
parent | 9972fc6db6bd816f464dff90741c36f6be137f96 (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-x | word-aligner/aligner.pl | 7 |
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 \\ |