From 5c5a150cb7307175df8735a543183e89d8a149cc Mon Sep 17 00:00:00 2001 From: Eugene Vignanker <39065538+eugenevignanker@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:03:37 -0700 Subject: [PATCH] FSTALIGN-63: Added an assert (#49) Co-authored-by: Eugene Vignanker --- src/fstalign.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fstalign.cpp b/src/fstalign.cpp index 28eaa6f..af5b5b0 100644 --- a/src/fstalign.cpp +++ b/src/fstalign.cpp @@ -597,6 +597,7 @@ void write_stitches_to_nlp(vector& stitches, ofstream &output_nlp_fil ref_tk = original_nlp_token; } else if (stitch.comment.find("ins") == 0) { + assert(add_inserts); logger->debug("an insertion was found for {} {}", stitch.hyptk, stitch.comment); ref_tk = ""; stitch.comment = "ins(" + stitch.hyptk + ")";