Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
036c4433
There was an error fetching the commit references. Please try again later.
Commit
036c4433
authored
11 years ago
by
Adam Radziszewski
Browse files
Options
Downloads
Patches
Plain Diff
rm autogen params from CCLReader since every reader now does autogen
parent
f84b001d
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
libcorpus2/io/cclreader.cpp
+2
-22
2 additions, 22 deletions
libcorpus2/io/cclreader.cpp
libcorpus2/io/cclreader.h
+2
-4
2 additions, 4 deletions
libcorpus2/io/cclreader.h
with
5 additions
and
27 deletions
CMakeLists.txt
+
1
−
1
View file @
036c4433
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/io/cclreader.cpp
+
2
−
22
View file @
036c4433
...
...
@@ -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
))
{
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/io/cclreader.h
+
2
−
4
View file @
036c4433
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment