Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2014-07-18 00:31:40 +0400
committerUlrich Germann <ugermann@inf.ed.ac.uk>2014-07-18 00:31:40 +0400
commit3194c4783d5c7b02c76282f1daadf6de7d602dbb (patch)
tree099af323de118320f54b78092641a751e507bc7b /moses/TypeDef.h
parent51c4d116f3f8b4f47eecc976bfdc88bf231f5cb3 (diff)
Setting DEFAULT_MAX_PHRASE_LENGTH to numeric_limits<size_t>::max() breaks
the regression test for (deprecated) PhraseDictionaryDynSuffixArray, so I set it to 100,000 (to have virtually unlimited phrase length for suffix array-based phrase tables.
Diffstat (limited to 'moses/TypeDef.h')
-rw-r--r--moses/TypeDef.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/moses/TypeDef.h b/moses/TypeDef.h
index 7852d130d..2f45f5e9c 100644
--- a/moses/TypeDef.h
+++ b/moses/TypeDef.h
@@ -31,6 +31,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include <BaseTsd.h>
#else
#include <stdint.h>
+
typedef uint32_t UINT32;
typedef uint64_t UINT64;
#endif
@@ -60,7 +61,8 @@ const size_t DEFAULT_MAX_TRANS_OPT_CACHE_SIZE = 10000;
const size_t DEFAULT_MAX_TRANS_OPT_SIZE = 5000;
const size_t DEFAULT_MAX_PART_TRANS_OPT_SIZE = 10000;
#ifdef PT_UG
- const size_t DEFAULT_MAX_PHRASE_LENGTH = -1;
+// setting to std::numeric_limits<size_t>::max() makes the regression test for (deprecated) PhraseDictionaryDynamicSuffixArray fail.
+ const size_t DEFAULT_MAX_PHRASE_LENGTH = 100000;
#else
const size_t DEFAULT_MAX_PHRASE_LENGTH = 20;
#endif