question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spm_train and spm_encode: command not found

See original GitHub issue

Merge all train packs into one Merge train text dictionary: data/lang_char/train_100_unigram5000_units.txt Dictionary preparation ./examples/speech_recognition/datasets/prepare-librispeech.sh: line 71: spm_train: command not found ./examples/speech_recognition/datasets/prepare-librispeech.sh: line 72: spm_encode: command not found 3 data/lang_char/train_100_unigram5000_units.txt Prepare train and test jsons usage: asr_prep_json.py [-h] --audio-dirs AUDIO_DIRS [AUDIO_DIRS …] --labels LABELS --spm-model SPM_MODEL --dictionary DICTIONARY [–audio-format {flac,wav}] --output OUTPUT

Hello everyone, I install fairseq by source files, when I run ./examples/speech_recognition/datasets/prepare-librispeech.sh /home/yfchen/zhu/data/librispeech/ /home/yfchen/zhu/data/process_libri, it show above error. How can I fix this problem, thank you in anvance.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Cuihao1208commented, Sep 4, 2021

replace “spm_train” to “python ${fairseq_root}/scripts/spm_train.py” and replace “spm_encode” to “python ${fairseq_root}/scripts/spm_encode.py” can solve this problem.

1reaction
sooftwarecommented, Nov 10, 2020

@SeunghyunSEO LoL!! I changed the code above a little and organized it here.
https://github.com/sooftware/KoSpeech/tree/master/dataset/libri

The main difference is that sentencepiece is used in Python.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spm_train and spm_encode: command not found · Issue #2041
Merge all train packs into one Merge train text dictionary: data/lang_char/train_100_unigram5000_units.txt Dictionary preparation .
Read more >
Using SentencePiece as a command - Stack Overflow
However I get spm_train: command not found does that mean I need to install C++ version from the github ? Also, how can...
Read more >
Where can I find sentencepiece_model of my model? - Support
Hello, I'm using OpenNMT-tf. I had trained an English - Tetun model. I translate using cmd in docs (from the text “My name...
Read more >
Google SentencePiece - Kaggle
This notebook shows how to build and run Google sentencepiece package and tokenize the encoded text. link code ...
Read more >
SentencePiece: A simple and language independent subword ...
Figure LABEL:fig1:command presents end-to-end example of SentencePiece training ( spm_train ), encoding ( spm_encode ), and decoding ( spm_decode ).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found