【问题标题】:DeepSpeech-Polyglot: Signals.SIGSEGV: 11DeepSpeech-Polyglot:Signals.SIGSEGV:11
【发布时间】:2021-01-14 16:27:40
【问题描述】:

我正在尝试生成 DeepSpeech-Polyglot-Project 的记分器。我已遵循文档的每一步,但是当我运行时:

python3 /DeepSpeech/data/lm/generate_lm.py --input_txt /DeepSpeech/data_prepared/texts/${LANGUAGE}/clean_vocab.txt --output_dir /DeepSpeech/data_prepared/texts/${LANGUAGE}/ --top_k 500000 --kenlm_bins /DeepSpeech/native_client/kenlm/build/bin/ --arpa_order 5 --max_arpa_memory "85%" --arpa_prune "0|0|1" --binary_a_bits 255 --binary_q_bits 8 --binary_type trie --discount_fallback

我收到以下错误:

Saving top 500000 words ...

Calculating word statistics ...
  Your text file has 202185630 words in total
  It has 2106729 unique words
  Your top-500000 words are 98.7433 percent of all words
  Your most common word "die" occurred 7853080 times
  The least common word in your top-k is "adamantium" with 5 times
  The first word with 6 occurrences is "begibst" at place 448270

Creating ARPA file ...
=== 1/5 Counting and sorting n-grams ===
Reading /DeepSpeech/data_prepared/texts/de/lower.txt.gz
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
Traceback (most recent call last):
  File "/DeepSpeech/data/lm/generate_lm.py", line 210, in <module>
    main()
  File "/DeepSpeech/data/lm/generate_lm.py", line 201, in main
    build_lm(args, data_lower, vocab_str)
  File "/DeepSpeech/data/lm/generate_lm.py", line 97, in build_lm
    subprocess.check_call(subargs)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/DeepSpeech/native_client/kenlm/build/bin/lmplz', '--order', '5', '--temp_prefix', '/DeepSpeech/data_prepared/texts/de/', '--memory', '85%', '--text', '/DeepSpeech/data_prepared/texts/de/lower.txt.gz', '--arpa', '/DeepSpeech/data_prepared/texts/de/lm.arpa', '--prune', '0', '0', '1', '--discount_fallback']' died with <Signals.SIGSEGV: 11>.

我正在使用此文档:https://gitlab.com/Jaco-Assistant/deepspeech-polyglot

感谢每一个提示。

【问题讨论】:

    标签: mozilla-deepspeech


    【解决方案1】:

    这已经在DeepSpeech's Discourse.讨论过

    基本上你的 KenLM 没有正确安装。只在谷歌上搜索错误,你会发现你必须重新安装并检查你的环境。

    【讨论】:

    • 对不起,我不明白 Discourse 上的答案。我尝试重新安装 KenLM,如下所示:git clone https://github.com/kpu/kenlmcd kenlmmkdir buildcd buildapt install build-essential cmake libboost-system-dev libboost-thread-dev libboost-program-options-dev libboost-test-dev libeigen3-dev zlib1g-dev libbz2-dev liblzma-devcmake ..make -j 4 为了确保我没有遗漏一些东西,我还添加了pip install https://github.com/kpu/kenlm/archive/master.zip 它总是安装@987654331 @这是正常的还是我搞砸了?
    • 啊,不要用pip版本。这绝对是问题所在。您必须自己构建它,试试这个:medium.com/tekraze/…
    猜你喜欢
    • 2021-06-14
    • 2019-11-28
    • 2021-11-21
    • 2022-11-27
    • 2021-12-11
    • 2021-07-24
    • 2020-05-26
    • 2021-08-06
    • 2022-11-02
    相关资源
    最近更新 更多