From e202d85c10942fd586088207a55226cc1eb1a01e Mon Sep 17 00:00:00 2001 From: graehl Date: Thu, 8 Jul 2010 19:12:59 +0000 Subject: misc git-svn-id: https://ws10smt.googlecode.com/svn/trunk@185 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/cdec.cc | 2 ++ decoder/sparse_vector.h | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/decoder/cdec.cc b/decoder/cdec.cc index 85412d6a..140fe8e4 100644 --- a/decoder/cdec.cc +++ b/decoder/cdec.cc @@ -350,7 +350,9 @@ int main(int argc, char** argv) { prelm_w.InitFromFile(plmw); prelm_feature_weights.resize(FD::NumFeats()); prelm_w.InitVector(&prelm_feature_weights); + cerr << "prelm_weights: " << FeatureVector(prelm_feature_weights)< MapType; typedef typename std::map::const_iterator const_iterator; SparseVector() {} + explicit SparseVector(std::vector const& v) { + MapType::iterator p=values_.end(); + for (unsigned i=0;i