Skip to content

Commit

Permalink
Merge pull request #63 from kho/const_reorder_2
Browse files Browse the repository at this point in the history
Soft linguistic reordering constraints from http://www.aclweb.org/anthology/P14-1106
  • Loading branch information
redpony committed Dec 18, 2014
2 parents 7967680 + 1613f1f commit fb3eed6
Show file tree
Hide file tree
Showing 17 changed files with 5,162 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ training/mr_reduce_to_weights
training/optimize_test
training/plftools
training/test_ngram
training/const_reorder/argument_reorder_model_trainer
training/const_reorder/const_reorder_model_trainer
utils/atools
utils/bin/
utils/crp_test
Expand Down
1 change: 0 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ EXTRA_DIST = corpus tests python/cdec python/tests python/examples compound-spli
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -D_GLIBCXX_PARALLEL -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -Wall

8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS(config.h)
AC_PROG_LIBTOOL
AC_PROG_LEX
case $LEX in
:) AC_MSG_ERROR([No lex (Flex, lex, etc.) program found]);;
esac
case $LEX in
:) AC_MSG_ERROR([No lex (Flex, lex, etc.) program found]);;
esac
OLD_CXXFLAGS=$CXXFLAGS
AC_PROG_CC
AC_PROG_CXX
Expand Down Expand Up @@ -236,9 +236,9 @@ AC_CONFIG_FILES([training/minrisk/Makefile])
AC_CONFIG_FILES([training/mira/Makefile])
AC_CONFIG_FILES([training/latent_svm/Makefile])
AC_CONFIG_FILES([training/dtrain/Makefile])
AC_CONFIG_FILES([training/const_reorder/Makefile])

# external feature function example code
AC_CONFIG_FILES([example_extff/Makefile])

AC_OUTPUT

3 changes: 3 additions & 0 deletions decoder/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ libcdec_a_SOURCES = \
ff_bleu.h \
ff_charset.h \
ff_conll.h \
ff_const_reorder_common.h \
ff_const_reorder.h \
ff_context.h \
ff_csplit.h \
ff_external.h \
Expand Down Expand Up @@ -113,6 +115,7 @@ libcdec_a_SOURCES = \
ff_charset.cc \
ff_conll.cc \
ff_context.cc \
ff_const_reorder.cc \
ff_csplit.cc \
ff_external.cc \
ff_factory.cc \
Expand Down
3 changes: 2 additions & 1 deletion decoder/cdec_ff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "ff.h"
#include "ff_basic.h"
#include "ff_context.h"
#include "ff_const_reorder.h"
#include "ff_spans.h"
#include "ff_lm.h"
#include "ff_klm.h"
Expand Down Expand Up @@ -77,6 +78,6 @@ void register_feature_functions() {
ff_registry.Register("WordPairFeatures", new FFFactory<WordPairFeatures>);
ff_registry.Register("SourcePathFeatures", new FFFactory<SourcePathFeatures>);
ff_registry.Register("WordSet", new FFFactory<WordSet>);
ff_registry.Register("ConstReorderFeature", new FFFactory<ConstReorderFeature>);
ff_registry.Register("External", new FFFactory<ExternalFeature>);
}

Loading

0 comments on commit fb3eed6

Please sign in to comment.