Don't add empty lines to Alphabet when parsing

This commit is contained in:
Reuben Morais 2020-07-04 11:28:57 +02:00
parent 30de5153bc
commit 03ed4a45f8

View File

@ -57,6 +57,9 @@ Alphabet::init(const char *config_file)
if (line == " ") {
space_label_ = label;
}
if (line.length() == 0) {
continue;
}
label_to_str_[label] = line;
str_to_label_[line] = label;
++label;