Skip to content

Commit

Permalink
Correct the last commit of compute-gop.cc
Browse files Browse the repository at this point in the history
With the advisement from code reviewer @csukuangfj, I updated the code, addressing all the identified issues and implementing best practices.
  • Loading branch information
a2d8a4v committed Jun 24, 2024
1 parent 7c1c5e6 commit 768a23e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bin/compute-gop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,10 @@ int main(int argc, char *argv[]) {
"<transition-alignments-respecifier> "
"<phoneme-alignments-rspecifier> "
"<prob-matrix-rspecifier> <gop-wspecifier> "
"[<phone-feature-wspecifier>]\n"
"<phone-feature-wspecifier>\n"
"e.g.:\n"
" nnet3-compute [args] | compute-gop 1.mdl ark:ali-phone.1 ark:-"
" nnet3-compute [args] | compute-gop 1.mdl ark:ali.1 ark:ali-phone.1 "
" ark:output.1.ark "
" ark:gop.1 ark:phone-feat.1\n";

ParseOptions po(usage);
Expand Down Expand Up @@ -206,7 +207,7 @@ int main(int argc, char *argv[]) {
std::vector<int32> phone_boundary;
for (int32 i = 0; i < split.size(); i++) {
for (int32 j = 0; j < split[i].size(); j++) {
phone_boundary.push_back(static_cast<int32>(i));
phone_boundary.push_back(i);
}
}

Expand Down

0 comments on commit 768a23e

Please sign in to comment.