Don't add empty lines to Alphabet when parsing
This commit is contained in:
parent
30de5153bc
commit
03ed4a45f8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user