summaryrefslogtreecommitdiff
path: root/vest
diff options
context:
space:
mode:
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;
}