[Bug]: CoVoST 2 truncates translations containing a literal language label

Đang mở
#23,264 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@JunkaiWang-TheoPhy đang làm issue này rồi.

Từ ngày 2/12/2026.

  • #23265 của @JunkaiWang-TheoPhy — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
machine-learning

Hướng nghiên cứu

Start with CoVoST2._extract_translation in tensorrt_llm.evaluate.covost2 and reproduce the supplied example on CPU. Check how label matching handles line starts and multiple sections; the open linked pull request indicates work is already underway. Done means the extracted prediction retains the literal German: inside the translated sentence.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

System Info

TensorRT-LLM main at f06c84da4cad0814ab0bfa0b154187a325cb9f5d. Reproduced with Python 3.12 and SacreBLEU 2.6.0 on CPU. The affected score calculation does not require a GPU or model weights.

Reproduction
from tensorrt_llm.evaluate.covost2 import CoVoST2

response = (
    "The sign says to go this way.\n"
    "German: Das Schild trägt die Aufschrift German: bitte hier entlang."
)
print(CoVoST2._extract_translation(response, "German"))
Expected behavior

The prediction passed to BLEU is Das Schild trägt die Aufschrift German: bitte hier entlang.. The first German: is the section label and the second is part of the translated sentence. The Gemma speech-translation prompt places the label at the beginning of the line after the transcription.

Actual behavior

The prediction is truncated to bitte hier entlang.. With the full sentence as the reference, this single synthetic response scores 17.38 corpus BLEU even though the translation matches the reference exactly. Unstructured responses with an inline label also lose everything before that label.

Additional notes

The scoring helper uses rfind() over the full response. A line-start match would distinguish actual section labels from mentions in the transcript or translation. The last genuine label can still be used when several sections exist.

Ngôn ngữ chính
Python
Star
15.2k
Fork
3k
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
477

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/TensorRT-LLM

Tất cả issue của NVIDIA/TensorRT-LLM

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.