proycon / foliatools

A number of command-line tools for working with FoLiA (Format for Linguistic Annotation). Includes validators, converters, visualisers, and more.
GNU General Public License v3.0
10 stars 4 forks source link

txt2folia fails on control character on single line #14

Closed proycon closed 3 years ago

proycon commented 3 years ago

When a text file has an invalid control characters in a line, it is stripped. But if it's the sole input for the word, we may end up with empty text, which is not allowed. An extra check is needed to prevent his.