Skip to content
Snippets Groups Projects
Commit 036c4433 authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

rm autogen params from CCLReader since every reader now does autogen

parent f84b001d
No related merge requests found
......@@ -2,7 +2,7 @@ PROJECT(Corpus2Library)
set(corpus2_ver_major "1")
set(corpus2_ver_minor "5")
set(corpus2_ver_patch "0")
set(corpus2_ver_patch "1")
cmake_minimum_required(VERSION 2.8.0)
......
......@@ -40,24 +40,6 @@ public:
~CclReaderImpl();
void set_autogen_sent_id(bool) {
// won't work
// now this is always true for each reader
}
bool get_autogen_sent_id() const {
return true; // always true by design
}
void set_autogen_chunk_id(bool) {
// won't work
// left for backwards compatibility
}
bool get_autogen_chunk_id() const {
return true; // always true by design
}
protected:
bool process_start_element(const Glib::ustring & name,
const AttributeList& attributes);
......@@ -92,8 +74,7 @@ protected:
};
CclReader::CclReader(const Tagset& tagset, std::istream& is,
bool disamb_only, bool disamb_sh, bool autogen_sent_id,
bool autogen_chunk_id)
bool disamb_only, bool disamb_sh)
: BufferedChunkReader(tagset),
impl_(new CclReaderImpl(*this, chunk_buf_, disamb_only, disamb_sh))
{
......@@ -101,8 +82,7 @@ CclReader::CclReader(const Tagset& tagset, std::istream& is,
}
CclReader::CclReader(const Tagset& tagset, const std::string& filename,
bool disamb_only, bool disamb_sh, bool autogen_sent_id,
bool autogen_chunk_id)
bool disamb_only, bool disamb_sh)
: BufferedChunkReader(tagset),
impl_(new CclReaderImpl(*this, chunk_buf_, disamb_only, disamb_sh))
{
......
......@@ -31,12 +31,10 @@ class CclReader : public BufferedChunkReader
{
public:
CclReader(const Tagset& tagset, std::istream& is,
bool disamb_only = false, bool disamb_sh = false,
bool autogen_sent_id = false, bool autogen_chunk_id_ = false);
bool disamb_only = false, bool disamb_sh = false);
CclReader(const Tagset& tagset, const std::string& filename,
bool disamb_only = false, bool disamb_sh = false,
bool autogen_sent_id = false, bool autogen_chunk_id_ = false);
bool disamb_only = false, bool disamb_sh = false);
~CclReader();
......
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