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" 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";