Expand description
Accuracy testing for Finite-State Spell-Checkers
A tool to help testing quality of finite-state spell-checkers. Shows precision and recall and F scores.
ยงUsage examples
Itโs a command-line tool:
$ cargo run -- typos.txt se.zhfst
will produce statistics of spelling corrections.
It is possible to fine-tune the options using a configuration file in json
format. The format of json file follows from the SpellerConfig
definition in
the main library:
$ cargo run -- --config config.json typos.txt se.zhfst
For automated testing in CI there is a โthreshold parametre:
$ cargo run -- --threshold 0.9 typos.txt se.zhfst
Structsยง
- Accuracy
Result ๐ - Report ๐
- Summary ๐
- Time ๐
Staticsยง
- CFG ๐
Functionsยง
- load_
words ๐ - main ๐