summaryrefslogtreecommitdiff
path: root/decoder/ff_lm.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 19:43:31 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 19:43:31 +0000
commit2621d66cc3de03395ab0c7a6f85113ed45189641 (patch)
tree95d57d0f88fc7e5c9fdbd9c3f2a1117dda1aa4ae /decoder/ff_lm.cc
parentd0063ea4ae7dbad8a9148ca3ebf6855cd2aa9af6 (diff)
optional google dense_hash_map, srim vocab (TDICT) as static - may help valgrind warning?
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@339 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_lm.cc')
-rw-r--r--decoder/ff_lm.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc
index bbf63338..2f0277c8 100644
--- a/decoder/ff_lm.cc
+++ b/decoder/ff_lm.cc
@@ -192,7 +192,7 @@ class LanguageModelImpl {
}
public:
- explicit LanguageModelImpl(int order) : ngram_(*TD::dict_, order)
+ explicit LanguageModelImpl(int order) : ngram_(TD::dict_, order)
{
init(order);
}
@@ -200,7 +200,7 @@ class LanguageModelImpl {
//TODO: show that unigram special case (0 state) computes what it should.
LanguageModelImpl(int order, const string& f, int load_order=0) :
- ngram_(*TD::dict_, load_order ? load_order : order)
+ ngram_(TD::dict_, load_order ? load_order : order)
{
init(order);
File file(f.c_str(), "r", 0);