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
14d5c640
Commit
14d5c640
authored
14 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
Reader::set_option draft
parent
ad9740b4
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libcorpus2/io/reader.h
+3
-0
3 additions, 0 deletions
libcorpus2/io/reader.h
libcorpus2/io/xcesreader.cpp
+9
-0
9 additions, 0 deletions
libcorpus2/io/xcesreader.cpp
libcorpus2/io/xcesreader.h
+2
-0
2 additions, 0 deletions
libcorpus2/io/xcesreader.h
with
14 additions
and
0 deletions
libcorpus2/io/reader.h
+
3
−
0
View file @
14d5c640
...
...
@@ -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_
;
}
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/io/xcesreader.cpp
+
9
−
0
View file @
14d5c640
...
...
@@ -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 */
This diff is collapsed.
Click to expand it.
libcorpus2/io/xcesreader.h
+
2
−
0
View file @
14d5c640
...
...
@@ -42,6 +42,8 @@ public:
return
*
is_
;
}
void
set_option
(
const
std
::
string
&
option
);
protected
:
void
ensure_more
();
...
...
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