Welm
One command to build TLG.fst for WeNet.
Install / Use
/learn @pengzhendong/WelmREADME
WeLM
WeLM depens on:
- WeTextProcessing: Text Normalization
- jieba: Chinese Word Segmentation
- SentencePiece : English subword units Byte-Pair-Encoding (BPE)
- SRILM: N-Gram Language Model Training
- Some tools of Kaldi: TLG Graph Building
Usage
- Prepare the acoustic model's unit file
units.txt.
$ wget https://path/to/aishell2/20210618_u2pp_conformer_libtorch.tar.gz
$ tar -xf 20210618_u2pp_conformer_libtorch.tar.gz
- Prepare transcript file
trans.txt.
$ head -n1 trans.txt
BAC009S0002W0122 而对楼市成交抑制作用最大的限购
- Build the FST.
$ bash run.sh --unit_file units.txt --text trans.txt
$ ls exp/lang
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
