Skip to main content

RNN language model training, export, and perplexity toolkit

Project description

rnnlm

Train, export, and evaluate RNNLM for ASR.

Install

Install in editable mode from repository root:

pip install -e .

CLI

After installation, use:

rnnlm train --help
rnnlm ppl --help
rnnlm export --help

Examples:

rnnlm train --num-epochs 30 --batch-size 400 --exp-dir rnn_lm/exp --lm-data data/train.txt --lm-data-valid data/valid.txt --bpe-model data/bpe.model
rnnlm ppl --epoch 29 --avg 5 --exp-dir rnn_lm/exp --lm-data data/test.txt --bpe-model data/bpe.model
rnnlm export --epoch 29 --avg 5 --exp-dir rnn_lm/exp --jit 1

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

rnnlm-0.1.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rnnlm-0.1.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file rnnlm-0.1.0.tar.gz.

File metadata

  • Download URL: rnnlm-0.1.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rnnlm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 24537191ef040aa318e4d052604a7067376e637acfec1bc2929acded4a403856
MD5 8e43f45f60e9418916496d0a6d96b766
BLAKE2b-256 a837348785c7b72bbbbc51b143e493d1d5e93b4426548555bc554ee33617a8ce

See more details on using hashes here.

File details

Details for the file rnnlm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rnnlm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rnnlm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d31ebed74f5ef192979dc4b53ecd142269d8ef399101052f19a466efba273c7
MD5 083eb08c0efbd636ddf4dff887a6fc09
BLAKE2b-256 5db310b1ac3456310b9c651ead4971fc702c1e465a7629f20953f3ec8e225095

See more details on using hashes here.

Supported by

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