diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2015-01-19 01:26:32 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2015-01-19 01:26:32 +0300 |
commit | 16ffc2c978b2fe13ea0451ef915af3170ccd8432 (patch) | |
tree | c108814ef5ed25c4513140cdfa9388022e828e0d /moses/TranslationModel | |
parent | 95a88a17c5baaff11af24a0821d1fd86b73d9b45 (diff) |
Added new VW feature and execption to Simple9
Diffstat (limited to 'moses/TranslationModel')
-rw-r--r-- | moses/TranslationModel/CompactPT/ListCoders.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/TranslationModel/CompactPT/ListCoders.h b/moses/TranslationModel/CompactPT/ListCoders.h index b41e183ce..b78dbdd8a 100644 --- a/moses/TranslationModel/CompactPT/ListCoders.h +++ b/moses/TranslationModel/CompactPT/ListCoders.h @@ -175,6 +175,9 @@ private: uint i = 0; while(it != end) { + UTIL_THROW_IF2(*it > 268435455, "You are trying to encode " << *it + << " with Simple9. Cannot encode numbers larger than 268435455 (2^28-1)"); + uint l = bitlength * (length-i-1); output |= *it << l; it++; |