Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fast_align.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/ttables.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(ttable.size())) ttable.resize(ie + 1);
if (ie >= static_cast<unsigned>(ttable.size())) ttable.resize(ie + 1);
ttable[ie][d.Convert(f)] = exp(p);
}
cerr << "Loaded " << c << " translation parameters.\n";
Expand Down