Skip to content
Snippets Groups Projects
Commit 14d5c640 authored by ilor's avatar ilor
Browse files

Reader::set_option draft

parent ad9740b4
No related merge requests found
......@@ -46,6 +46,9 @@ public:
virtual boost::shared_ptr<Chunk> get_next_chunk() = 0;
virtual void set_option(const std::string& /*option*/) {
}
const Tagset& tagset() {
return tagset_;
}
......
......@@ -89,4 +89,13 @@ XcesReaderImpl::~XcesReaderImpl()
{
}
void XcesReader::set_option(const std::string& option)
{
if (option == "loose") {
impl_->set_loose_tag_parsing(true);
} else if (option == "strict") {
impl_->set_loose_tag_parsing(false);
}
}
} /* end ns Corpus2 */
......@@ -42,6 +42,8 @@ public:
return *is_;
}
void set_option(const std::string& option);
protected:
void ensure_more();
......
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