diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-08 15:56:55 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-08 15:56:55 +0300 |
commit | fdb5d9b282fe51fecca14f3d6226eb5980fbe6f5 (patch) | |
tree | 0bef491d0d2344e43cd5f407357cb3e79ada3d04 /misc | |
parent | 9528b56242de61c824b15e790cf4abe72e2ceb66 (diff) |
Code refactoring: All FF now get access to AllOptions at load time, so they don't have to rely on StaticData.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/queryPhraseTableMin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/queryPhraseTableMin.cpp b/misc/queryPhraseTableMin.cpp index 71efcc79c..c9ccbdf91 100644 --- a/misc/queryPhraseTableMin.cpp +++ b/misc/queryPhraseTableMin.cpp @@ -9,6 +9,7 @@ #include "moses/TranslationModel/CompactPT/PhraseDictionaryCompact.h" #include "moses/Util.h" #include "moses/Phrase.h" +#include "moses/parameters/AllOptions.h" void usage(); @@ -50,7 +51,8 @@ int main(int argc, char **argv) std::stringstream ss; ss << nscores; PhraseDictionaryCompact pdc("PhraseDictionaryCompact input-factor=0 output-factor=0 num-features=" + ss.str() + " path=" + ttable); - pdc.Load(); + AllOptions opts; + pdc.Load(opts); std::string line; while(getline(std::cin, line)) { |