BerandaComputers and TechnologyShow HN: Mltype – Typing Practice for Programmers

Show HN: Mltype – Typing Practice for Programmers


Command line tool for improving typing speed and accuracy. The main goal is
to help programmers practise programming languages.

pip install --upgrade mltype

Text generation

  • Using neural networks to generate text. One can use
    pretrained networks (see below) or train new ones from scratch.
  • Alternatively, one can read text from a file or provide it manually

Typing interface

  • Dead simple (implemented in curses)
  • Basic statistics – WPM and accuracy
  • Setting target speed
  • Playing against past performances

The entrypoint is mlt

$ mlt
Usage: mlt [OPTIONS] COMMAND [ARGS]...

  Tool for improving typing speed and accuracy

  --help  Show this message and exit.

  file    Type text from a file
  ls      List all language models
  random  Sample characters randomly from a vocabulary
  raw     Provide text manually
  replay  Compete against a past performance
  sample  Sample text from a language
  train   Train a language

See below a list of pretrained models. They are stored on a google drive
and one needs to download the entire archive.

Once you download the file, you will need to place it in ~/.mltype/languages.
Note that if the folder does not exist you will have to create it. The file name
can be changed to whatevery you like. This name will then be used to
refer to the model.

To verify that the model was downloaded succesfully, try to sample from it.
Note that this might take 20+ seconds the first time around.

This project is very much motivated by the The Unreasonable Effectiveness of
Recurrent Neural Networks by Andrej Karpathy.

Read More



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments