From a63b2d4daef8f9d625cb1307c8c10f343a00e548 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Tue, 20 Oct 2026 18:16:03 +0200 Subject: [PATCH] dsv41: --score segment file really carries end_line --- src/dsv41/ds4_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsv41/ds4_main.cpp b/src/dsv41/ds4_main.cpp index 2d594fe9..9c895631 100644 --- a/src/dsv41/ds4_main.cpp +++ b/src/dsv41/ds4_main.cpp @@ -620,7 +620,7 @@ int score(strata::ds4::Model& m, const std::string& ids_path, const std::string& } a += (size_t) T; } - std::fprintf(sj, "%s{\"name\": \"%s\", \"first_line\": %lld, \"n\": %lld, \"ppl\": %.6f, \"top1\": %.6f}", si ? ", " : "", + std::fprintf(sj, "%s{\"name\": \"%s\", \"first_line\": %lld, \"end_line\": %lld, \"n\": %lld, \"ppl\": %.6f, \"top1\": %.6f}", si ? ", " : "", segs[si].name.c_str(), first, first + cnt, cnt, std::exp(sum_nll / (double) std::max(1LL, cnt)), (double) top1 / (double) std::max(1LL, cnt)); std::fprintf(stderr, "score %s: %lld positions, ppl %.4f, top-1 %.4f (%.0f s)\n", segs[si].name.c_str(), cnt,