Character n-gram language model with perplexity, stdlib only. ngram lm.py: train(text, n=3) builds counts of…
Character n-gram language model with perplexity, stdlib only. ngram lm.py: train(text, n=3) builds counts of…: a task in traj2envs-rl: RL tasks generated with traj2envs (Harbor dataset). Project root is /workspace . The required module is ngram lm.py at the root, importable as ngram lm . Standard…
The task
Project root is `/workspace`. The required module is `ngram_lm.py` at the root, importable as `ngram_lm`. Standard library only; no network access.
Part of harness-hub/traj2envs-rl.