Skip to content
Snippets Groups Projects
Commit 5c66f5fa authored by ilor's avatar ilor
Browse files

fix out of chunk tokens

parent 11480d41
Branches
No related merge requests found
...@@ -85,11 +85,12 @@ void XmlReader::on_start_element(const Glib::ustring &name, ...@@ -85,11 +85,12 @@ void XmlReader::on_start_element(const Glib::ustring &name,
std::cerr << "Warning: out-of-chunk token, assuming sentence start on line "; std::cerr << "Warning: out-of-chunk token, assuming sentence start on line ";
std::cerr << this->context_->input->line << "\n"; std::cerr << this->context_->input->line << "\n";
} }
chunkless_ = true;
out_of_chunk_ = true;
AttributeList fake; AttributeList fake;
start_chunk(fake); start_chunk(fake);
fake.push_back(Attribute("type", "s"));
start_sentence(fake); start_sentence(fake);
chunkless_ = true;
out_of_chunk_ = true;
start_token(attributes); start_token(attributes);
} else if (state_ == STATE_NONE && name == "cesAna") { } else if (state_ == STATE_NONE && name == "cesAna") {
//nop //nop
......
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