diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-09 21:25:41 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-09 21:25:41 +0000 |
commit | 261027816caf7676dbb082ce58da086b5f5cb707 (patch) | |
tree | 70bd7c17203c9e16df9f10f66900aa166855b3d8 | |
parent | 2f18ef81afaed06ab7a1214b4e367db49c9c7606 (diff) |
mert comments
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@213 ec762483-ff6d-05da-a07a-a48fb63a330f
-rw-r--r-- | vest/lo_test.cc | 4 | ||||
-rw-r--r-- | vest/mr_vest_map.cc | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/vest/lo_test.cc b/vest/lo_test.cc index f937daac..5b0ba3cd 100644 --- a/vest/lo_test.cc +++ b/vest/lo_test.cc @@ -147,7 +147,7 @@ TEST_F(OptTest, TestS1) { RandomNumberGenerator<boost::mt19937> rng; - vector<SparseVector<double> > axes; + vector<SparseVector<double> > axes; // directions to search LineOptimizer::CreateOptimizationDirections( to_optimize, 10, @@ -161,7 +161,7 @@ TEST_F(OptTest, TestS1) { cerr << "Computing Viterbi envelope using inside algorithm...\n"; cerr << "axis: " << axis << endl; clock_t t_start=clock(); - ViterbiEnvelopeWeightFunction wf(wts, axis); + ViterbiEnvelopeWeightFunction wf(wts, axis); // wts = starting point, axis = search direction envs[0] = Inside<ViterbiEnvelope, ViterbiEnvelopeWeightFunction>(hg, NULL, wf); envs[1] = Inside<ViterbiEnvelope, ViterbiEnvelopeWeightFunction>(hg2, NULL, wf); diff --git a/vest/mr_vest_map.cc b/vest/mr_vest_map.cc index 740b4c64..b3acc5dd 100644 --- a/vest/mr_vest_map.cc +++ b/vest/mr_vest_map.cc @@ -75,6 +75,7 @@ int main(int argc, char** argv) { istringstream is(line); int sent_id; string file, s_origin, s_axis; + // path-to-file (JSON) sent_ed starting-point search-direction is >> file >> sent_id >> s_origin >> s_axis; SparseVector<double> origin; assert(ReadSparseVectorString(s_origin, &origin)); @@ -96,7 +97,7 @@ int main(int argc, char** argv) { es.Serialize(&val); cout << 'M' << ' ' << s_origin << ' ' << s_axis << '\t'; B64::b64encode(val.c_str(), val.size(), &cout); - cout << endl; + cout << endl << flush; } return 0; } |