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
ee8ffaea
There was an error fetching the commit references. Please try again later.
Commit
ee8ffaea
authored
14 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
flags in xmlreader
parent
ad825b13
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcorpus2/io/xmlreader.h
+14
-0
14 additions, 0 deletions
libcorpus2/io/xmlreader.h
with
14 additions
and
0 deletions
libcorpus2/io/xmlreader.h
+
14
−
0
View file @
ee8ffaea
...
@@ -43,6 +43,14 @@ public:
...
@@ -43,6 +43,14 @@ public:
disamb_sh_
=
v
;
disamb_sh_
=
v
;
}
}
void
set_warn_on_inconsistent
(
bool
v
)
{
warn_on_inconsistent_
=
v
;
}
void
set_warn_on_unexpected
(
bool
v
)
{
warn_on_unexpected_
=
v
;
}
protected
:
protected
:
std
::
string
get_type_from_attributes
(
const
AttributeList
&
attributes
)
const
;
std
::
string
get_type_from_attributes
(
const
AttributeList
&
attributes
)
const
;
...
@@ -81,10 +89,13 @@ protected:
...
@@ -81,10 +89,13 @@ protected:
static
const
int
STATE_LEMMA
=
6
;
static
const
int
STATE_LEMMA
=
6
;
static
const
int
STATE_TAG
=
7
;
static
const
int
STATE_TAG
=
7
;
/// The state of the parser
int
state_
;
int
state_
;
/// Flag signyfying there was a sentence outside of a chunk
bool
chunkless_
;
bool
chunkless_
;
/// Flag signyfying there was a token outside of a sentence/chunk
bool
out_of_chunk_
;
bool
out_of_chunk_
;
/// Whitespace for the next token
/// Whitespace for the next token
...
@@ -111,10 +122,13 @@ protected:
...
@@ -111,10 +122,13 @@ protected:
/// Read Pantera-like disamb_sh diamb tag markings
/// Read Pantera-like disamb_sh diamb tag markings
bool
disamb_sh_
;
bool
disamb_sh_
;
/// Flag to control warning messages on state errors
bool
warn_on_inconsistent_
;
bool
warn_on_inconsistent_
;
/// Floag to control warning messages on unknown tags
bool
warn_on_unexpected_
;
bool
warn_on_unexpected_
;
/// Tag name for sentence objects, customized in child class ctors
std
::
string
sentence_tag_name_
;
std
::
string
sentence_tag_name_
;
};
};
...
...
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