diff --git a/moses-cmd/Main.cpp b/moses-cmd/Main.cpp index 9d54712a6..b17fd7b13 100644 --- a/moses-cmd/Main.cpp +++ b/moses-cmd/Main.cpp @@ -590,13 +590,15 @@ int main(int argc, char** argv) exit(1); } - +std::cerr <<"Before StaticData::LoadDataStatic" << std::endl; // initialize all "global" variables, which are stored in StaticData // note: this also loads models such as the language model, etc. if (!StaticData::LoadDataStatic(¶ms, argv[0])) { exit(1); } +std::cerr <<"After StaticData::LoadDataStatic" << std::endl; +std::cerr <<"Before ShowWeights" << std::endl; // setting "-show-weights" -> just dump out weights and exit if (params.isParamSpecified("show-weights")) { ShowWeights(); diff --git a/moses/StaticData.cpp b/moses/StaticData.cpp index 0512b7489..71b696fc1 100644 --- a/moses/StaticData.cpp +++ b/moses/StaticData.cpp @@ -534,7 +534,19 @@ bool StaticData::LoadData(Parameter *parameter) NoCache(); OverrideFeatures(); +std::cerr <<"After StaticData::LoadDataStatic" << std::endl; + +std::cerr <<"Before ShowWeights" << std::endl; + // setting "-show-weights" -> just dump out weights and exit + if (params.isParamSpecified("show-weights")) { + MosesCmd::ShowWeights(); + exit(0); + } +std::cerr <<"After ShowWeights" << std::endl; + +std::cerr <<"Before LoadFeatureFunctions" << std::endl; LoadFeatureFunctions(); +std::cerr <<"After LoadFeatureFunctions" << std::endl; if (!LoadDecodeGraphs()) return false;