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
4890337e
Commit
4890337e
authored
13 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
fix corpus-get with no sentence range
parent
7a9e4bc3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corpus2tools/corpus-get
+2
-2
2 additions, 2 deletions
corpus2tools/corpus-get
with
2 additions
and
2 deletions
corpus2tools/corpus-get
+
2
−
2
View file @
4890337e
...
...
@@ -111,7 +111,7 @@ def go():
return
else
:
selection
.
update
(
izip
(
parse_range_info
(
arg
),
repeat
(())))
maxsel
=
max
(
selection
.
keys
())
maxsel
=
max
(
selection
.
keys
())
if
selection
.
keys
()
!=
[]
else
None
if
selection
==
{}:
if
options
.
chunks
:
for
chunk
in
chunks
(
reader
):
...
...
@@ -129,7 +129,7 @@ def go():
else
:
write_selected_sentences
(
chunk
.
sentences
(),
writer
,
selection
[
cid
])
cid
+=
1
if
cid
>
maxsel
:
break
if
maxsel
is
not
None
and
cid
>
maxsel
:
break
else
:
write_selected_sentences
(
sentences
(
reader
),
writer
,
selection
,
maxsel
)
...
...
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