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
path: root/kenlm
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@Hieus-MacBook.local>2011-10-28 16:13:14 +0400
committerHieu Hoang <hieuhoang@Hieus-MacBook.local>2011-10-28 16:13:14 +0400
commit42924144fd0c247a57d669db7862be898f675416 (patch)
tree61f550b082c2733f33ae2a8596b3de044ff7d4b2 /kenlm
parent62c901eb521447f945fc0e5727ad2f4d98f0e47d (diff)
parent899293243abcbba2af013e5175aa65bebd5e18d3 (diff)
Merge branch 'master' of github.com:moses-smt/mosesdecoder
Diffstat (limited to 'kenlm')
-rw-r--r--kenlm/lm/search_trie.cc2
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);