OnWorks favicon

mkbingram - Online in the Cloud

Run mkbingram in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mkbingram that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



- make binary N-gram from ARPA N-gram file


mkbingram [-nlr forward_ngram.arpa] [-nrl backward_ngram.arpa] [-d old_bingram_file]


mkbingram is a tool to convert N-gram definition file(s) in ARPA standard format to a
compact Julius binary format. It will speed up the initial loading time of N-gram much
faster. It can read gzipped file directly.

From rev.4.0, Julius can deal with forward N-gram, backward N-gram and their combinations.
So, mkbingram now generates binary N-gram file from one of them, or combining them two to
produce one binary N-gram.

When only a forward N-gram is specified, mkbingram generates binary N-gram from only the
forward N-gram. When using this binary N-gram at Julius, it performs the 1st pass with the
2-gram probabilities in the N-gram, and run the 2nd pass with the given N-gram fully, with
converting forward probabilities to backward probabilities by Bayes rule.

When only a backward N-gram is specified, mkbingram generates an binary N-gram file that
contains only the backward N-gram. The 1st pass will use forward 2-gram probabilities that
can be computed from the backward 2-gram using Bayes rule, and the 2nd pass use the given
backward N-gram fully.

When both forward and backward N-grams are specified, the 2-gram part in the forward
N-gram and all backward N-gram will be combined into single bingram file. The forward
2-gram will be applied for the 1st pass and backward N-gram for the 2nd pass. Note that
both N-gram should be trained in the same corpus with same parameters (i.e. cut-off
thresholds), with same vocabulary.

The old binary N-gram produced by mkbingram of version 3.x and earlier can be used in
Julius-4, but you can convert the old version to the new version by specifying it as input
of current mkbingram by option "-d".

Please note that binary N-gram file converted by mkbingram of version 4.0 and later cannot
be read by older Julius 3.x.


-nlr forward_ngram.arpa
Read in a forward (left-to-right) word N-gram file in ARPA standard format.

-nrl backward_ngram.arpa
Read in a backward (right-to-left) word N-gram file in ARPA standard format.

-d old_bingram_file
Read in a binary N-gram file.

Swap BOS word <s> and EOS word </s> in N-gram.

binary N-gram file name to output.


Convert a set of forward and backward N-gram in ARPA format into Julius binary form:
Convert a single forward 4-gram in ARPA format into a binary file:
Convert old binary N-gram file to current format:

Use mkbingram online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    SMPlayer is a free media player for
    Windows and Linux with built-in codecs
    that can also play YouTube videos. One
    of the most interesting features of
    Download SMPlayer
  • 2
    AAX to MP3
    AAX to MP3
    Usage: - Install the Audible Manager
    and open a file of your account. - Sign
    in into your audible account (in the
    application). Now the program can
    convert you...
    Download AAX to MP3
  • 3
    TestLink is a web based Test Management
    tool. The application provides Test
    specification, Test plans and execution,
    Reporting, Requirements specification
    and ...
    Download TestLink
  • 4
    XDXF - XML Dictionary Exchange Format
    XDXF - XML Dictionary Exchange Format
    XDXF is a project to unite all existing
    open dictionaries and provide both users
    and developers with universal XML-based
    format, convertible from and to other ...
    Download XDXF - XML Dictionary Exchange Format
  • 5
    Transmission Remote GUI
    Transmission Remote GUI
    Transmission Remote GUI is a feature
    rich cross platform front-end to
    remotely control a Transmission
    Bit-Torrent client daemon via its RPC
    protocol. Transmissi...
    Download Transmission Remote GUI
  • 6
    Open-source tool to access Amazon S3
    file storage. S3cmd is a free command
    line tool and client for uploading,
    retrieving and managing data in Amazon
    S3 and ot...
    Download s3cmd
  • More »

Linux commands