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
02fdca01
Commit
02fdca01
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of nlp.pwr.wroc.pl:corpus2
parents
b0f6246a
2954c0ac
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libcorpus2/io/cclwriter.cpp
+11
-3
11 additions, 3 deletions
libcorpus2/io/cclwriter.cpp
libcorpus2/io/cclwriter.h
+2
-0
2 additions, 0 deletions
libcorpus2/io/cclwriter.h
with
13 additions
and
3 deletions
libcorpus2/io/cclwriter.cpp
+
11
−
3
View file @
02fdca01
...
...
@@ -21,6 +21,15 @@ CclWriter::~CclWriter()
}
void
CclWriter
::
write_sentence
(
const
Sentence
&
s
)
{
paragraph_head
();
if
(
use_indent_
)
indent_more
();
write_sentence_int
(
s
);
if
(
use_indent_
)
indent_less
();
osi
()
<<
"</chunk>
\n
"
;
}
void
CclWriter
::
write_sentence_int
(
const
Sentence
&
s
)
{
const
AnnotatedSentence
*
ann
=
dynamic_cast
<
const
AnnotatedSentence
*>
(
&
s
);
osi
()
<<
"<sentence>
\n
"
;
...
...
@@ -46,8 +55,7 @@ void CclWriter::write_sentence(const Sentence& s)
XmlWriter
::
write_token
(
*
t
);
}
}
if
(
use_indent_
)
indent_less
();
osi
()
<<
"</sentence>
\n
"
;
if
(
use_indent_
)
indent_less
();
osi
()
<<
"</sentence>
\n
"
;
}
void
CclWriter
::
write_chunk
(
const
Chunk
&
c
)
...
...
@@ -55,7 +63,7 @@ void CclWriter::write_chunk(const Chunk &c)
paragraph_head
(
c
);
if
(
use_indent_
)
indent_more
();
foreach
(
const
Sentence
::
ConstPtr
&
s
,
c
.
sentences
())
{
write_sentence
(
*
s
);
write_sentence
_int
(
*
s
);
}
if
(
use_indent_
)
indent_less
();
osi
()
<<
"</chunk>
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/io/cclwriter.h
+
2
−
0
View file @
02fdca01
...
...
@@ -20,6 +20,8 @@ public:
static
bool
registered
;
protected:
void
write_sentence_int
(
const
Sentence
&
s
);
void
do_header
();
void
do_footer
();
...
...
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