Skip to content

Commit

Permalink
suggest
Browse files Browse the repository at this point in the history
  • Loading branch information
Trondtr committed May 23, 2024
1 parent 9ca7f5f commit 615644a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/test-diary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------------------------------------------------------
```




0 comments on commit 615644a

Please sign in to comment.