From 45f87d6efe7318a2ef4587cecb5f7c04528260a8 Mon Sep 17 00:00:00 2001 From: Eugene Vignanker Date: Mon, 11 Sep 2023 22:59:00 +0000 Subject: [PATCH] FSTALIGN-63: Added an assert --- 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 + ")";