diff --git a/returnn/search.py b/returnn/search.py index 248de437..62917862 100644 --- a/returnn/search.py +++ b/returnn/search.py @@ -449,6 +449,11 @@ def run(self): d = eval(util.uopen(self.recog_words_file.get_path(), "rt").read()) assert isinstance(d, dict), "only search output file with dict format is supported" with util.uopen(self.out_ctm_file.get_path(), "wt") as out: + # Do not print optional [n-best] header, some downstream evaluation pipelines + # use the number of headers for validation. Since we do not print n-best-list + # information this validation fails and discards the entire search outputs. + # + # See https://github.com/rwth-i6/i6_core/pull/542. out.write(";; \n") for seg in corpus.segments(): seg_start = 0.0 if seg.start == float("inf") else seg.start @@ -541,6 +546,11 @@ def run(self): else: seq_order = d.keys() with util.uopen(self.out_ctm_file.get_path(), "wt") as out: + # Do not print optional [n-best] header, some downstream evaluation pipelines + # use the number of headers for validation. Since we do not print n-best-list + # information this validation fails and discards the entire search outputs. + # + # See https://github.com/rwth-i6/i6_core/pull/542. out.write(";; \n") for seg_fullname in seq_order: assert isinstance(