mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 15:48:05 +03:00
d00c788760
mmap works; utility to build binary format included. Configuration struct (including unknown handling options). config option to build a binary format while loading an ARPA. Doesn't require Boost or ICU. Works on 32 and 64 bit. query appends </s>. Reduced memory consumption: 12 bytes per 5-gram instead of 16 bytes on 64-bit machines. Reduced memory consumption: vocabulary takes 8 bytes/word instead of 12 bytes/word if sorted is used. Removed some cruft that wasn't needed by this code. Compiles on Mac OS X. Add script to run tests; these depend on Boost. SRI wrapper works again, is slightly faster, no longer depends on Boost, and has a test. Debugging code only appears with -DDEBUG, so the default is fast. git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3447 1f5c12ca-751b-0410-a591-d2e778427230
12 lines
205 B
C++
12 lines
205 B
C++
// Separate header because this is used often.
|
|
#ifndef LM_WORD_INDEX__
|
|
#define LM_WORD_INDEX__
|
|
|
|
namespace lm {
|
|
typedef unsigned int WordIndex;
|
|
} // namespace lm
|
|
|
|
typedef lm::WordIndex LMWordIndex;
|
|
|
|
#endif
|