Metadata-Version: 2.4
Name: rnnlm
Version: 0.1.0
Summary: RNN language model training, export, and perplexity toolkit
Author: rnnlm contributors
License: Apache-2.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch
Requires-Dist: numpy
Requires-Dist: simple-sentencepiece
Requires-Dist: tensorboard
Dynamic: license-file

# rnnlm

Train, export, and evaluate RNNLM for ASR.

## Install

Install in editable mode from repository root:

```bash
pip install -e .
```

## CLI

After installation, use:

```bash
rnnlm train --help
rnnlm ppl --help
rnnlm export --help
```

Examples:

```bash
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
```
