hfst / hfst-ospell

HFST spell checker library and command line tool
Apache License 2.0
13 stars 9 forks source link

--max-weight has no effect #54

Closed snomos closed 3 years ago

snomos commented 3 years ago

Cf the following:

echo 'siebredahkese' | hfst-ospell -S sma-desktop.zhfst | wc -l
     234
echo 'siebredahkese' | hfst-ospell -S --max-weight=1000 sma-desktop.zhfst | wc -l
     234

The expected result should be equivalent to the following:

echo 'siebredahkese' | hfst-ospell -S --max-weight=1000 sma-desktop.zhfst | grep -v '[12]....\.' | wc -l
      88

The zhfst file is attached.

sma-desktop.zhfst.zip