Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
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
Syntactic Tools
combo
Commits
16465269
Commit
16465269
authored
4 years ago
by
Mateusz Klimaszewski
Browse files
Options
Downloads
Patches
Plain Diff
Fix dataset reader.
parent
7e552166
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!24
Release 1.0.0b4.
,
!23
Release 1.0.0b4.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
combo/data/dataset.py
+2
-2
2 additions, 2 deletions
combo/data/dataset.py
with
2 additions
and
2 deletions
combo/data/dataset.py
+
2
−
2
View file @
16465269
...
@@ -82,8 +82,8 @@ class UniversalDependenciesDatasetReader(allen_data.DatasetReader):
...
@@ -82,8 +82,8 @@ class UniversalDependenciesDatasetReader(allen_data.DatasetReader):
for
conllu_file
in
file_path
:
for
conllu_file
in
file_path
:
file
=
pathlib
.
Path
(
conllu_file
)
file
=
pathlib
.
Path
(
conllu_file
)
assert
conllu_file
and
file
.
exists
(),
f
"
File with path
'
{
conllu_file
}
'
does not exists!
"
assert
conllu_file
and
file
.
exists
(),
f
"
File with path
'
{
conllu_file
}
'
does not exists!
"
with
file
.
open
(
"
r
"
):
with
file
.
open
(
"
r
"
)
as
f
:
for
annotation
in
conllu
.
parse_incr
(
f
ile
,
fields
=
self
.
fields
,
field_parsers
=
self
.
field_parsers
):
for
annotation
in
conllu
.
parse_incr
(
f
,
fields
=
self
.
fields
,
field_parsers
=
self
.
field_parsers
):
yield
self
.
text_to_instance
(
annotation
)
yield
self
.
text_to_instance
(
annotation
)
@overrides
@overrides
...
...
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