diff options
Diffstat (limited to 'training/collapse_weights.cc')
-rw-r--r-- | training/collapse_weights.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/training/collapse_weights.cc b/training/collapse_weights.cc index 4fb742fb..dc480f6c 100644 --- a/training/collapse_weights.cc +++ b/training/collapse_weights.cc @@ -59,10 +59,8 @@ int main(int argc, char** argv) { InitCommandLine(argc, argv, &conf); const string wfile = conf["weights"].as<string>(); const string gfile = conf["grammar"].as<string>(); - Weights wm; - wm.InitFromFile(wfile); - vector<double> w; - wm.InitVector(&w); + vector<weight_t> w; + Weights::InitFromFile(wfile, &w); MarginalMap e_tots; MarginalMap f_tots; prob_t tot; |