Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
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
WCCL
Commits
c25d539a
Commit
c25d539a
authored
14 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
until-done support in wcclrules
parent
a3d5ae74
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wcclrules/main.cpp
+5
-1
5 additions, 1 deletion
wcclrules/main.cpp
with
5 additions
and
1 deletion
wcclrules/main.cpp
+
5
−
1
View file @
c25d539a
...
@@ -72,7 +72,11 @@ void do_stream(boost::shared_ptr<Corpus2::TokenWriter> writer, const Corpus2::Ta
...
@@ -72,7 +72,11 @@ void do_stream(boost::shared_ptr<Corpus2::TokenWriter> writer, const Corpus2::Ta
Corpus2
::
XcesReader
xr
(
tagset
,
is
);
Corpus2
::
XcesReader
xr
(
tagset
,
is
);
Corpus2
::
Sentence
::
Ptr
s
;
Corpus2
::
Sentence
::
Ptr
s
;
while
((
s
=
xr
.
get_next_sentence
()))
{
while
((
s
=
xr
.
get_next_sentence
()))
{
rules
.
execute_once
(
s
);
if
(
opts
.
until_done
)
{
rules
.
execute_until_done
(
s
,
opts
.
until_done_iterations
);
}
else
{
rules
.
execute_once
(
s
);
}
writer
->
write_sentence
(
*
s
);
writer
->
write_sentence
(
*
s
);
if
(
opts
.
first
)
break
;
if
(
opts
.
first
)
break
;
}
}
...
...
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