diff --git a/src/spm_encode_main.cc b/src/spm_encode_main.cc index b8fa5267..5d8c3d9f 100644 --- a/src/spm_encode_main.cc +++ b/src/spm_encode_main.cc @@ -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"; }