Views
No views yet
f1f5b9a69a47496630aa43605f1bd46e5484a2f4.--source, and --target as described in the
Fairseq Simultaneous Translation repository:
${LIST_OF_AUDIO} is the list of audio paths and ${TGT_FILE} the segment-wise references in the
target language.${TGT_LANG} as the target language code in 3 characters. The list of supported language codes is available here.
For the source language, no language code has to be specified.${LATENCY_UNIT} to either word (e.g., for German) or
char (e.g., for Japanese), and ${BLEU_TOKENIZER} to either 13a (i.e., the standard sacreBLEU
tokenizer used, for example, to evaluate German) or char (e.g., to evaluate character-level
languages such as Chinese or Japanese).${FRAME}) and the
layer from which to extract the attention scores (${LAYER}) have to be set accordingly.${TGT_LANG}=deu, ${FRAME}=6, ${LAYER}=3, ${SEG_SIZE}=1000${TGT_LANG}=jpn, ${FRAME}=1, ${LAYER}=0, ${SEG_SIZE}=400${TGT_LANG}=cmn, ${FRAME}=1, ${LAYER}=3, ${SEG_SIZE}=800${TGT_LANG}=eng, ${FRAME}=9, ${LAYER}=3, ${SEG_SIZE}=1000${FRAME} can be adjusted to achieve lower/higher latency.1simuleval \
2 --agent-class examples.speech_to_text.simultaneous_translation.agents.v1_1.simul_alignatt_seamlessm4t.AlignAttSeamlessS2T \
3 --source ${LIST_OF_AUDIO} \
4 --target ${TGT_FILE} \
5 --data-bin ${DATA_ROOT} \
6 --model-size medium --target-language ${TGT_LANG} \
7 --extract-attn-from-layer ${LAYER} --num-beams 5 \
8 --frame-num ${FRAME} \
9 --source-segment-size ${SEG_SIZE} \
10 --quality-metrics BLEU --latency-metrics LAAL AL ATD --computation-aware \
11 --eval-latency-unit ${LATENCY_UNIT} --sacrebleu-tokenizer ${BLEU_TOKENIZER} \
12 --output ${OUT_DIR} \
13 --device cuda:0 ${OUT_DIR}.docker load -i simulseamless.tar1docker run -e TGTLANG=${TGT_LANG} -e FRAME=${FRAME} -e LAYER=${LAYER} \
2 -e BLEU_TOKENIZER=${BLEU_TOKENIZER} -e LATENCY_UNIT=${LATENCY_UNIT} \
3 -e DEV=cuda:0 --gpus all --shm-size 32G \
4 -p 2024:2024 simulseamless:latest1simuleval \
2 --remote-eval --remote-port 2024 \
3 --source ${LIST_OF_AUDIO} --target ${TGT_FILE} \
4 --source-type speech --target-type text \
5 --source-segment-size ${SEG_SIZE} \
6 --eval-latency-unit ${LATENCY_UNIT} --sacrebleu-tokenizer ${BLEU_TOKENIZER} \
7 --output ${OUT_DIR}${TGT_LANG}, ${FRAME}, ${LAYER}, ${BLEU_TOKENIZER}, ${LATENCY_UNIT},
${LIST_OF_AUDIO}, ${TGT_FILE}, ${SEG_SIZE}, and ${OUT_DIR} refer to
🤖 Inference using your environment.1@inproceedings{papi-etal-2024-simulseamless,
2 title = "{S}imul{S}eamless: {FBK} at {IWSLT} 2024 Simultaneous Speech Translation",
3 author = "Papi, Sara and
4 Gaido, Marco and
5 Negri, Matteo and
6 Bentivogli, Luisa",
7 editor = "Salesky, Elizabeth and
8 Federico, Marcello and
9 Carpuat, Marine",
10 booktitle = "Proceedings of the 21st International Conference on Spoken Language Translation (IWSLT 2024)",
11 month = aug,
12 year = "2024",
13 address = "Bangkok, Thailand (in-person and online)",
14 publisher = "Association for Computational Linguistics",
15 url = "https://aclanthology.org/2024.iwslt-1.11",
16 pages = "72--79",
17}