filyp / autocorrect

Spelling corrector in python
GNU Lesser General Public License v3.0
447 stars 79 forks source link

Evaluation #49

Closed Ransly closed 2 years ago

Ransly commented 2 years ago

Is there a way to measure or evaluate how much the system has done the spelling correction correctly?

filyp commented 2 years ago

Oh yeah, with this file: https://github.com/filyp/autocorrect/blob/master/test_all.py For example you can run:

python test_all.py quality

to measure correction quality with the words defined inside this file. You can also use your own words by putting them in this file.