hfst / hfst-ospell

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

hfst-ospell accepts empty zhfst file #13

Closed hfst-importer closed 8 years ago

hfst-importer commented 10 years ago

To reproduce:

  1. touch empty.zhfst
  2. hfst-ospell -v empty.zhfst

Expected behaviour: hfst-ospell should fail with an error message

Actual behaviour: it reports using the 'und' language, and accepts any input, reporting that it could not correct it.

Among other things, it makes it impossible to automatically test the validity of zhfst files using hfst-ospell.

A test for this bug has been added to the hfst-ospell code base, revision 3809.

Reported by: *anonymous

hfst-importer commented 9 years ago

It seems that this bug has been fixed at some point:

$ touch empty.zhfst $ hfst-ospell -v empty.zhfst cannot read zhfst archive empty.zhfst: No automata found in zip.

Original comment by: eaxelson

hfst-importer commented 9 years ago

Original comment by: eaxelson