textlab / glossa-foni-cgibin

0 stars 0 forks source link

exclude kategori does not work in BOKMAL #23

Closed andrely closed 11 years ago

andrely commented 11 years ago

Error displayed:

because: CQP Error: Format error in undump file (row #1)

runelk commented 11 years ago

Exclude works for BOKMALTEST but not BOKMAL. The generated dump file (query_dev.cgi:657) has a blank line in BOKMAL but not in BOKMALTEST.

runelk commented 11 years ago

The $dumpstring as generated in Glossa_local.pm is prepended with a newline in the case of BOKMAL, but not with BOKMALTEST. When prepended again with the $dumplength variable before written to the dump file, this results in the blank line.

runelk commented 11 years ago

An untagged document has somehow snuck into the corpus and lacks a wordcount even though it is registered as part of the corpus. The list of corpus positions thus contains the ID for this document and two empty strings where the positions should have been, resulting in the blank line that corrupts the dump file. I'll regenerate the corpus tonight and close this issue if it works.

runelk commented 11 years ago

Problem disappeared upon regenerating the corpus. Bug is not related to Glossa.