Skip to content
Snippets Groups Projects
Commit 7f50b551 authored by ilor's avatar ilor
Browse files

fix line no. output on error in tagset parser

parent e7250075
Branches
No related merge requests found
......@@ -164,7 +164,7 @@ Tagset TagsetParser::load_ini(std::istream &is)
}
tagset.pos_dict_.load_sorted_data(vec);
if (tagset.pos_dict_.size() == 0) {
throw TagsetParseError("No POS in tagset", 0, "");
throw TagsetParseError("No POS in tagset", line_no, "");
}
for (size_t i = 0; i < poses_plain.size(); ++i) {
idx_t p = tagset.pos_dictionary().get_id(poses_plain[i]);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment