LanguageMachines / PICCL

A set of workflows for corpus building through OCR, post-correction and normalisation
Other
48 stars 6 forks source link

more elegant error handling needed #59

Closed Irishx closed 4 years ago

Irishx commented 4 years ago

if ticcl is applied to a list of one word, and it cannot find correction candidates, it gives this error:

ERROR: Expected output corpus.wordfreqlist.tsv.clean.indexNT does not exist or is empty

--> but this is not so much an error, as just a feature of the spelling checker who was intended for full texts. We should give a more informatie error here.

proycon commented 4 years ago

I already pushed a commit that addresses this: https://github.com/LanguageMachines/PICCL/commit/8de0395c4823b53cba6efb1ea1c544eae5a9d67f