mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 12:52:29 +03:00
changes
This commit is contained in:
parent
8d9bf2405d
commit
03825e3ffd
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user