GiellaLT

GiellaLT provides an infrastructure for rule-based language technology aimed at minority and indigenous languages, and streamlines building anything from keyboards to speech technology. Read more about Why. See also How to get started, and our Privacy document.

View GiellaLT on GitHub giellalt/giellalt.github.io

ivvunspell, accuracy and regtest

Background

GiellaLT facilitates the use of two epeller engines:

  1. hfst-ospell
  2. divvunspell

We have recently (2024) moved to using divvunspell for the GiellaLT spellers

Installation and documentation

Speller testing with divvunspell

There’s a prototype-level testing tool in the divvunspell directory. In order to use it, clone divvunspell (see the README file for details. Note that you will need rust to use divvunspell.

Use divvunspell like this (here with sma as an example, the command assumes you stand in divvun/divvunspell, the path to and name of the files containing the test data (here: typos.tsv and speller (here: sma.zhfst) will of course vary).:

accuracy -o support/accuracy-viewer/public/report.json ../../giellalt/lang-sma/tools/spellchecker/test/typos.tsv  ../../giellalt/lang-sma/tools/spellchecker/sma.zhfst

cd support/accuracy-viewer

npm i && npm run dev

View in a browser with http://localhost:5000 (where the 5-digit number is given in the feedback).

More info by accuracy --help.

Using the results

The penalty points are explained on the Speller Error Model page. The goal is to get values for corrections as high as possible, this may be done by tweaking the penalty points.

hfst-ospell

Divvunspell is the speller engine used in the final spellcheckers, and should thus be the engine used for testing. The hfst-ospell spelling engine has a nice commandline interface and is thus useful for interactive testing. Cf.

hfst-ospell --help

Sitemap