diff options
author | Hieu Hoang <hieuhoang@Hieus-MacBook.local> | 2011-10-28 16:13:14 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@Hieus-MacBook.local> | 2011-10-28 16:13:14 +0400 |
commit | 42924144fd0c247a57d669db7862be898f675416 (patch) | |
tree | 61f550b082c2733f33ae2a8596b3de044ff7d4b2 /kenlm | |
parent | 62c901eb521447f945fc0e5727ad2f4d98f0e47d (diff) | |
parent | 899293243abcbba2af013e5175aa65bebd5e18d3 (diff) |
Merge branch 'master' of github.com:moses-smt/mosesdecoder
Diffstat (limited to 'kenlm')
-rw-r--r-- | kenlm/lm/search_trie.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kenlm/lm/search_trie.cc b/kenlm/lm/search_trie.cc index a3c14ef00..371c29639 100644 --- a/kenlm/lm/search_trie.cc +++ b/kenlm/lm/search_trie.cc @@ -491,7 +491,7 @@ template <class Quant, class Bhiksha> void BuildTrie(const std::string &file_pre util::scoped_FILE unigram_file; { std::string name(file_prefix + "unigrams"); - unigram_file.reset(OpenOrThrow(name.c_str(), "r")); + unigram_file.reset(OpenOrThrow(name.c_str(), "r+")); util::RemoveOrThrow(name.c_str()); } sri.ObtainBackoffs(counts.size(), unigram_file.get(), inputs); |