File "generate_scorer_package", line 1 SyntaxError: Non-UTF-8 code starting with '\xea' in file generate_scorer_package on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Getting following error on generating language scorer on Deepspeech
122 Views Asked by Rahul Tripathi At
1
There are 1 best solutions below
Related Questions in MOZILLA-DEEPSPEECH
- Mozilla-DeepSpeech: Give a sentence and get a matching percentage of voice recognition
- Increasing speak limit of mozilla tts
- How to save transcript to a text file in Mozilla DeepSpeech?
- Error Training Deepspeech inside Docker with Ubuntu 20.04 integration on Windows 10 (Nvidia Gpu Rtx 3090)
- Importing deepspeech error: Module not found
- Why building a new scorer outputs an empty string for deepspeech 0.9.3
- Why does adding the `--display_step 2` argument significantly slow down Mozilla DeepSpeech training time?
- Usiing deepspeech package for automatic speech recognition
- Build TFLite without ruy for android
- Getting blank results from deepspeech with portaudio in Rust
- Python for generating Timestamps for a manually transcribed .wav file
- Train DeepSpeech on Common Voice dataset gives error on gpu
- DeepSpeech failed to learn Persian language
- Bazel build not respecting my git submodules
- Training offline speech-recognition software with half-transcribed interviews
Related Questions in MAKE-SCORER
- What is "check_scoring" in sklearn.metrics?
- What is the difference between needs_proba and needs_threshold in scikit-learn make_scorer function?
- Matthew's Correlation Coefficient and Precision throws errors in RandomizedSearchCV
- ['kenlm/build/bin/build_binary', '-a', '255', '-q', '8', '-v', 'trie', 'lm_filtered.arpa', '/content/lm.binary']' returned non-zero exit status 1
- Scikit-learn make_scorer custom metric problem for multiclass clasification
- Set up kenlm for Windows
- "No attribute" error using oob_score_ with random forest classifier in grid search using make_scorer function for oob_error scorer
- Getting following error on generating language scorer on Deepspeech
- sklearn extract "sign of scorer" from GridSearch Object
- custom metric in gridsearchcv
- Error with precision_score of XGBoost classifier with RandomizedSearchCV
- using cross validation for calculating specificity
- How to pass f1_score arguments to the make_scorer in scikit learn to use with cross_val_score?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Before answering this question, I am going to make some assumptions:
Firstly, I believe you are following the DeepSpeech Playbook and are at the step in generating a
kenlm.scorerfile, as documented hereSecondly, I am going to assume that you are using a Python editor of some descrition, like PyCharm.
The error
SyntaxError: Non-UTF-8 code starting with '\xea' in file generate_scorer_package on line 2, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for detailsis not related to DeepSpeech; it is related the Python encoding of the file that is being executed.Python 3 assumes that the encoding of the
.pyfile isUTF-8; however some editors - particularly editors in other locales - can override this setting.To force the file to
UTF-8encoding, add the following code to the top of thegenerate_scorer_package.pyfile:NOTE: It MUST be at the top of the file
Alternatively, identify where in your editor the encoding is set, and change it.
See also these Stack Overflow questions that are similar:
SyntaxError: Non-UTF-8 code starting with '\x92' in file D:\AIAssistant\build\gui.py on line 92, but no encoding declared;
SyntaxError: Non-UTF-8 code starting with '\x82'