Skip to content
eaxelson edited this page Aug 21, 2017 · 3 revisions

hfst-ospell

Purpose

Spell check using HFST finite-state automata. This is a modest test tool. For full fledged spelling checkers, look into voikko and enchant.

Usage

The help message:

Usage: hfstospell [OPTIONS] [ZHFST-ARCHIVE]
Use automata in ZHFST-ARCHIVE or from OPTIONS to check and correct

  -h, --help                Print this help message
  -V, --version             Print version information
  -v, --verbose             Be verbose
  -q, --quiet               Don't be verbose (default)
  -s, --silent              Same as quiet
  -a, --analyse             Analyse strings and corrections
  -n, --limit=N             Show at most N suggestions
  -w, --max-weight=W        Suppress corrections with weights above W
  -b, --beam=W              Suppress corrections worse than best candidate by more than W
  -t, --time-cutoff=T       Stop trying to find better corrections after T seconds (T is a float)
  -S, --suggest             Suggest corrections to mispellings
  -X, --real-word           Also suggest corrections to correct words
  -m, --error-model         Use this error model (must also give lexicon as option)
  -l, --lexicon             Use this lexicon (must also give erro model as option)


Report bugs to [email protected]

Input

See here for explanation on the transducer input.

Examples

hfst-ospell fin.zhfst

Load Finnish zhfst speller from current directory.

HFST spell transducers can currently be fetched here.

Obtaining the program

See Download-And-Install.

Copyright

Copyright 2014 University of Helsinki; Licence Apache v2.

Reporting bugs

Report bugs to [email protected] or directly to our bug tracker at:

See also

Further info on HFST-based spell-checkers here.