From 5bea283d775a0dc6cf701683880f9c9f9bad9b05 Mon Sep 17 00:00:00 2001 From: aryamccarthy Date: Tue, 13 Feb 2018 09:17:00 -0500 Subject: [PATCH 1/2] Fix -Wsign-compare warning std::vector::size() can never be negative. --- src/ttables.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ttables.cc b/src/ttables.cc index 1095d13..684fffa 100644 --- a/src/ttables.cc +++ b/src/ttables.cc @@ -17,7 +17,7 @@ void TTable::DeserializeLogProbsFromText(istream* in, Dict& d) { if (e.empty()) break; ++c; unsigned ie = d.Convert(e); - if (ie >= static_cast(ttable.size())) ttable.resize(ie + 1); + if (ie >= static_cast(ttable.size())) ttable.resize(ie + 1); ttable[ie][d.Convert(f)] = exp(p); } cerr << "Loaded " << c << " translation parameters.\n"; From 5888c8d87fbaddd4503d798fa4afc7b3a7b175de Mon Sep 17 00:00:00 2001 From: aryamccarthy Date: Tue, 13 Feb 2018 09:17:20 -0500 Subject: [PATCH 2/2] Spelling correction in help --- src/fast_align.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fast_align.cc b/src/fast_align.cc index 637af26..b937587 100644 --- a/src/fast_align.cc +++ b/src/fast_align.cc @@ -301,7 +301,7 @@ int main(int argc, char** argv) { << " Standard options ([USE] = strongly recommended):\n" << " -i: [REQ] Input parallel corpus\n" << " -v: [USE] Use Dirichlet prior on lexical translation distributions\n" - << " -d: [USE] Favor alignment points close to the monotonic diagonoal\n" + << " -d: [USE] Favor alignment points close to the monotonic diagonal\n" << " -o: [USE] Optimize how close to the diagonal alignment points should be\n" << " -r: Run alignment in reverse (condition on target and predict source)\n" << " -c: Output conditional probability table\n"