Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
26e9fe67
Commit
26e9fe67
authored
Feb 10, 2011
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
wcclrun: remove do_head, add output-orths option
parent
24af99d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
wcclrun/main.cpp
+2
-19
2 additions, 19 deletions
wcclrun/main.cpp
with
2 additions
and
19 deletions
wcclrun/main.cpp
+
2
−
19
View file @
26e9fe67
...
...
@@ -47,7 +47,6 @@ public:
return
ops_
;
}
void
do_head
();
void
do_sentence
(
const
boost
::
shared_ptr
<
Corpus2
::
Sentence
>&
sentence
);
void
do_stream
(
std
::
istream
&
is
,
bool
first
);
...
...
@@ -95,23 +94,6 @@ bool Runner::load_more_operators(const std::string& filename)
return
false
;
}
void
Runner
::
do_head
()
{
streamsave
sv
(
std
::
cout
);
std
::
cout
<<
"## "
;
std
::
cout
<<
std
::
setw
(
20
)
<<
"orth"
;
int
i
=
0
;
foreach
(
const
boost
::
shared_ptr
<
Wccl
::
FunctionalOperator
>&
o
,
ops_
)
{
++
i
;
std
::
cout
<<
" "
;
std
::
cout
.
setf
(
std
::
ios
::
right
);
std
::
cout
<<
std
::
setw
(
15
)
<<
"operator "
;
std
::
cout
.
setf
(
std
::
ios
::
left
);
std
::
cout
<<
std
::
setw
(
5
)
<<
i
;
}
std
::
cout
<<
"
\n
"
;
}
void
Runner
::
do_sentence
(
const
boost
::
shared_ptr
<
Corpus2
::
Sentence
>&
sentence
)
{
Wccl
::
SentenceContext
sc
(
sentence
);
...
...
@@ -171,7 +153,6 @@ void Runner::do_stream(std::istream& is, bool first)
{
Corpus2
::
XcesReader
xr
(
tagset_
,
is
);
Corpus2
::
Sentence
::
Ptr
s
;
//do_head(tagset, ops);
while
((
s
=
xr
.
get_next_sentence
()))
{
do_sentence
(
s
);
std
::
cout
<<
"
\n
"
;
...
...
@@ -209,6 +190,8 @@ int main(int argc, char** argv)
"Output in-sentence token counts
\n
"
)
(
"global-counts,g"
,
value
(
&
global_numbering
),
"Output global counts
\n
"
)
(
"output-orths,O"
,
value
(
&
output_orths
),
"Output token orths
\n
"
)
(
"help,h"
,
"Show help"
)
;
boost
::
program_options
::
variables_map
vm
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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