Skip to main content

VariKN language modeling toolkit

Project description

VariKN language modeling toolkit provides tools for training n-gram language models. Amongst the supported methods are:

  • Absolute discounting

  • Kneser-Ney smoothing

  • Revised Kneser pruning

  • Kneser-Ney growing

The descriptions of Revised Kneser pruning and Kneser-Ney growing can be found in the paper Vesa Siivola, Teemu Hirsimäki and Sami Virpioja, “On Growing and Pruning Kneser-Ney Smoothed N-Gram Models”, IEEE Transactions on Speech, Audio and Language Processing, 15(5):1617-1624, 2007 (available at https://sites.google.com/site/vesassiivola/publications/TASLP2007.pdf).

The package provides a accurate pruning for Kneser-Ney smoothed models. Also, it is possible to train a very high-order n-gram models with the growing algorithm. The models can be output to arpa lm format, which is compatible with most common other tools in the field. You can look at the paper Vesa Siivola, Mathias Creutz and Mikko Kurimo: “Morfessor and VariKN machine learning tools for speech and language technology”, Proceedings of the 8th International Conference on Speech Communication and Technology (INTERSPEECH’07), 2007 (available at https://sites.google.com/site/vesassiivola/publications/is2007less.pdf) for guidelines on typical use.

For help on installing the toolkit, read the file named “install”.

For help on using the built commands, read the file named “commands.html”

If it looks like there is interest in using the toolkit but the documentation is inadequate, let me know the main sticking points and I’ll try to do something about it. If you are interested in a well supported toolkit that provides a wide range of functionality, you might want to look at the srilm toolkit (http://www-speech.sri.com/projects/srilm/).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

varikn-1.2.0b3.tar.gz (99.9 kB view hashes)

Uploaded Source

Built Distributions

varikn-1.2.0b3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (434.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-pp39-pypy39_pp73-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (442.5 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

varikn-1.2.0b3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (434.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-pp38-pypy38_pp73-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (442.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

varikn-1.2.0b3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (434.7 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-pp37-pypy37_pp73-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (442.6 kB view hashes)

Uploaded PyPy manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

varikn-1.2.0b3-cp311-cp311-musllinux_1_1_x86_64.whl (949.8 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

varikn-1.2.0b3-cp311-cp311-musllinux_1_1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

varikn-1.2.0b3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (434.3 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (442.5 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

varikn-1.2.0b3-cp310-cp310-musllinux_1_1_x86_64.whl (949.8 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

varikn-1.2.0b3-cp310-cp310-musllinux_1_1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

varikn-1.2.0b3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (434.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (442.6 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

varikn-1.2.0b3-cp39-cp39-musllinux_1_1_x86_64.whl (949.8 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

varikn-1.2.0b3-cp39-cp39-musllinux_1_1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

varikn-1.2.0b3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (434.3 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (442.6 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

varikn-1.2.0b3-cp38-cp38-musllinux_1_1_x86_64.whl (948.7 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

varikn-1.2.0b3-cp38-cp38-musllinux_1_1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

varikn-1.2.0b3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (433.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (442.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

varikn-1.2.0b3-cp37-cp37m-musllinux_1_1_x86_64.whl (948.0 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

varikn-1.2.0b3-cp37-cp37m-musllinux_1_1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ i686

varikn-1.2.0b3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (431.3 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-cp37-cp37m-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (441.9 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

varikn-1.2.0b3-cp36-cp36m-musllinux_1_1_x86_64.whl (948.1 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

varikn-1.2.0b3-cp36-cp36m-musllinux_1_1_i686.whl (1.0 MB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ i686

varikn-1.2.0b3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (431.3 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

varikn-1.2.0b3-cp36-cp36m-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl (441.9 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ i686 manylinux: glibc 2.17+ i686

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page