diff options
Diffstat (limited to 'pro-train/mr_pro_map.cc')
-rw-r--r-- | pro-train/mr_pro_map.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pro-train/mr_pro_map.cc b/pro-train/mr_pro_map.cc index 4324e8de..bc59285b 100644 --- a/pro-train/mr_pro_map.cc +++ b/pro-train/mr_pro_map.cc @@ -301,12 +301,8 @@ int main(int argc, char** argv) { const unsigned gamma = conf["candidate_pairs"].as<unsigned>(); const unsigned xi = conf["best_pairs"].as<unsigned>(); string weightsf = conf["weights"].as<string>(); - vector<double> weights; - { - Weights w; - w.InitFromFile(weightsf); - w.InitVector(&weights); - } + vector<weight_t> weights; + Weights::InitFromFile(weightsf, &weights); string kbest_repo = conf["kbest_repository"].as<string>(); MkDirP(kbest_repo); while(in) { |