From dfebe92df6e09b8950c93e08fadccd95763186f8 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Mon, 16 Jul 2012 10:50:56 -0400 Subject: Fix slow backoff lookup --- klm/lm/model.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'klm') diff --git a/klm/lm/model.cc b/klm/lm/model.cc index c081788c..a2d31ce0 100644 --- a/klm/lm/model.cc +++ b/klm/lm/model.cc @@ -53,9 +53,6 @@ template void GenericModel void GenericModel::InitializeFromARPA(const char *file, const Config &config) { // Backing file is the ARPA. Steal it so we can make the backing file the mmap output if any. util::FilePiece f(backing_.file.release(), file, config.messages); @@ -126,7 +123,7 @@ template FullScoreReturn GenericModel Date: Mon, 30 Jul 2012 17:13:10 -0400 Subject: People shouldn't be using compile.sh in cdec, but might as well make it work --- klm/compile.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 klm/compile.sh (limited to 'klm') diff --git a/klm/compile.sh b/klm/compile.sh old mode 100644 new mode 100755 index 56f2e9b2..55759f97 --- a/klm/compile.sh +++ b/klm/compile.sh @@ -7,7 +7,8 @@ set -e -for i in util/{bit_packing,ersatz_progress,exception,file_piece,murmur_hash,file,mmap} lm/{bhiksha,binary_format,config,lm_exception,model,quantize,read_arpa,search_hashed,search_trie,trie,trie_sort,virtual_interface,vocab}; do +rm {lm,util}/*.o +for i in util/{bit_packing,ersatz_progress,exception,file_piece,murmur_hash,file,mmap,usage} lm/{bhiksha,binary_format,config,lm_exception,model,quantize,read_arpa,search_hashed,search_trie,trie,trie_sort,value_build,virtual_interface,vocab}; do g++ -I. -O3 -DNDEBUG $CXXFLAGS -c $i.cc -o $i.o done g++ -I. -O3 -DNDEBUG $CXXFLAGS lm/build_binary.cc {lm,util}/*.o -lz -o build_binary -- cgit v1.2.3