Module Gram


module Gram: sig .. end
Gram implements n-gram grammars.

author: Jeff Heinz

last updated: June 2, 2007

This page explains how to use the gram command line executable. Gram implements n-gram grammars.

Usage

Invocation

Like other OCaML executables, the program is run by typing ./gram or ocamlrun gram at the command prompt. If you compiled using ocamlopt then you can just type gram. Generally it is invoked as follows.

gram subcommand options

Subcommands

The output of the gram command is always written to standard output. Therefore it is possible to pipe it | to other commands or direct it > to a file.

By itself gram will not do anything-- the argument subcommand is mandatory. The subcommand arguments recognized by gram are shown in the list below. A brief description of each subcommand is given.

Options

Following the first argument (the main command) you can optionally list as many of the following flags as you like (separated by spaces):