From 615644a404d5a471298570e40d838be5a70d7fc4 Mon Sep 17 00:00:00 2001 From: Trond Trosterud Date: Thu, 23 May 2024 09:28:53 +0200 Subject: [PATCH] suggest --- docs/test-diary.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/test-diary.md b/docs/test-diary.md index 1b2ca1fa1..8016f7b64 100644 --- a/docs/test-diary.md +++ b/docs/test-diary.md @@ -52,5 +52,32 @@ Coverage: +## Speller suggestions + +The table shows the number of typos tested, as well as some data for suggestions. + +To test: Clone [divvunspell](https://github.com/divvun/divvunspell/blob/main/README.md) and install **divvunspell** and **acceracy**. Then stand in `divvunspell` and do: + +``` +accuracy -o support/accuracy-viewer/public/report.json ../../giellalt/lang-smn/test/data/ typos.txt ../../giellalt/lang-smn/tools/spellcheckers/smn.zhfst + +cd support/accuracy-viewer + +npm i && npm run dev +``` + +At the end the report says (for example) `port: 35729`. Take the 5-digit number and open (the parallel to) http://localhost:35729 in your browser. + +Test results with divvunspell: +``` + typos Avrg pos % missp % missp + .txt for corr in 1st in top-5 +----------------------------------------------------------------- +240521: 904 56.64 72.35 +240522: 904 68.14 84.96 +----------------------------------------------------------------- +``` + +