compute_det_ctc make_pair drops transcript words that equal the utterance id
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- backend, testing-qa
Línea de trabajo
Read funasr/utils/compute_det_ctc.py and inspect make_pair(), which the issue identifies as the source of the transcript truncation. The issue provides two reproductions and the expected text; verify that words matching the utterance ID are retained while parsing the transcript after its first field. The author says a small PR with a test is ready, so check for work already underway before starting.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
make_pair() in funasr/utils/compute_det_ctc.py (used by the fsmn_kws finetune recipe to score keyword spotting) gets the transcript with line.replace(arr[0], '').strip(). That removes every occurrence of the utterance id in the line, not just the id at the start. So if the id also appears inside the transcript, those words are dropped, and the text that decides keyword vs. filler is wrong.
Repro:
from funasr.utils.compute_det_ctc import make_pair
print(make_pair(["1 /a.wav"], ["1 turn on light 1"])[0]["txt"])
print(make_pair(["go /a.wav"], ["go go go forward"])[0]["txt"])
Actual: turn on light and forward
Expected: turn on light 1 and go go forward
Fix: take everything after the first field, e.g. line.strip().split(maxsplit=1)[1].strip(). I have a small PR with a test ready.
- Lenguaje dominante
- Python
- Estrellas
- 21.2k
- Forks
- 2.2k
- Merge medio
- 5 h 38 min
- PR fusionados (30 d)
- 116
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de modelscope/FunASR
-
[Bug] ClusterBackend passes torch.Tensor to UMAP 0.6.0, causing a torch.float32 dtype TypeErrorPosiblemente ocupada @hansazilinon-art la tomó hace 18 días. Abiertobug needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
modelscope/FunASR#3908 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelscope/FunASR#3801 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
modelscope/FunASR#3796 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
modelscope/FunASR#3762 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Bug: blank lines in wav.scp / jsonl file lists crash prepare_data_iterator (IndexError / JSONDecodeError)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoneeds feedback
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
modelscope/FunASR#3757 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de modelscope/FunASR
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choicePosiblemente ocupada @beartester34 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
modelscope/evalscope#2330 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Distribution plot crashes when a numeric feature is constant in the train or test setPosiblemente ocupada @adembilge la tomó hoy. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MAIF/shapash#847 · 1 comentario ·
Los mantenedores suelen responder en 10 días