Coder Social home page Coder Social logo

kmario23 / kenlm-training Goto Github PK

View Code? Open in Web Editor NEW
111.0 6.0 21.0 6 KB

Training an n-gram based Language Model using KenLM toolkit for Deep Speech 2

natural-language-processing language-modeling automatic-speech-recognition deep-neural-networks kenlm-toolkit kenlm language-model probabilistic-models deep-speech speech-recognition

kenlm-training's Issues

Segmentation fault (core dumped)

Hi, I got error like in title when running this command:
./kenlm/bin/build_binary trie bible.arpa bible.binary

everything was good until this step, no sign of out of memory or something like that, it crashed immediately
any suggestion?

p/s: if I cant solve this problem, can I just use the arpa file (without trie)? it give the same score with the demo sentence in the README

Capital letters

I am trying to make an arabic language model the problem is the characters are not understandable by many frameworks so I use a simple conversion to map each character to English characters but arabic characters are more than English so there are capital letters in the corpus that will change the meaning if lowered. Will be that an issue to use capital letters?

how to get all the functions/arguments of kenlm model

Hi, a great thanks to the post on how to install kenlm. i have build bible.arpa and able to get the scores of the sentence using model.score(), now i would like to get the suitable n number of words when a character/sentence is given, how to get that.
one more is what are all the functions available for this model, where can i get those functions or arguments

EEROR

After i run the command :bzcat bible.en.txt.bz2 | python preprocess.py | ./kenlm/bin/lmplz -o 3 > bible.arpa,

ERROR:bash: ./kenlm/bin/lmplz: No such file or directory
Traceback (most recent call last):
File "preprocess.py", line 6, in
print(' '.join(nltk.word_tokenize(sentence)).lower())
BrokenPipeError: [Errno 32] Broken pipe.

BrokenPipeError: [Errno 32] Broken pipe

Hello
Please I am following this tutorial to create my French Language model : https://github.com/kmario23/KenLM-training
But when I type this cmd :
bzcat ./data_final/vocabulary.txt.bz2 | python preprocess.py | /home/innovation/kenlm/bin/lmplz -o 3 > myvocabulary.arpa

I get the following error :

print(' '.join(nltk.word_tokenize(sentence)).lower())
BrokenPipeError: [Errno 32] Broken pipe
Erreur de segmentation (core dumped)

How to generate trie file?

Hi,
I have successful run all those steps in README and have bible.arpa bible.binary but there is no trie file
How can I generate trie? I cant find any tutorial about this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.