summaryrefslogtreecommitdiff
path: root/vest
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-09 21:25:41 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-09 21:25:41 +0000
commit3eac13e1c9bb50fdec5fdfa2fb7004ab05646e73 (patch)
tree98d5d74c1c5e01fe2fa0247f2ba8c538ae500015 /vest
parent937ca2c2786665c8fc531f66803fedd84aceaef3 (diff)
mert comments
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@213 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
-rw-r--r--vest/lo_test.cc4
-rw-r--r--vest/mr_vest_map.cc3
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;
}