Skip to content

Commit

Permalink
Process the remainder of the input file
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarkovtsev committed Dec 19, 2023
1 parent dc661b8 commit d5e6d03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/spm_encode_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ int main(int argc, char *argv[]) {
}
}
pool.Wait();
if (!chunk.empty()) {
for (auto &line : chunk) {
process(line);
}
}
LOG(INFO) << "Encoded " << processed.load() << " sentences";
}

Expand Down

0 comments on commit d5e6d03

Please sign in to comment.