-
|
Is it possible the train only the punctuation model for a different language, i found out how to finetune only for the ASR models. If it's possible what trainset structure do i need and how to modify the training/finetuning to work for the punctuation model? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Yes, the CT-Transformer can be trained as a punctuation-only model; it does not need audio. It is a token-classification task: for every input text token, provide exactly one label describing the punctuation after that token. There is an important version caveat, though: current FunASR Data contractThe historical trainer used two Kaldi-style, two-column files with identical utterance IDs. For a character tokenizer: The aligned labels mean:
The historical punctuation vocabulary file was: The value after Adapting the 471,067-token checkpoint
Before training, assert this for every sample: assert len(text_ids) == len(punc_ids)For current FunASR, the practical route is a small custom dataset/collator that returns If you post the target language, tokenizer choice (character/word/subword), and desired punctuation set, we can provide an exact token-alignment example and determine how much of the Chinese/English checkpoint can be reused. |
Beta Was this translation helpful? Give feedback.
Yes, the CT-Transformer can be trained as a punctuation-only model; it does not need audio. It is a token-classification task: for every input text token, provide exactly one label describing the punctuation after that token.
There is an important version caveat, though: current FunASR
maindoes not ship a complete punctuation training recipe. The historicalpunc_train.py/PunctuationTaskpath was removed during the 1.0 refactor, and the current registered datasets do not produce thepuncandpunc_lengthsfields required byCTTransformer.forward. Therefore, changing the model name in an ASR fine-tuning command is not sufficient, and I would not recommend copying an old v0.x command into…