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
Merge requests
!23
Release 1.0.0b4.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Release 1.0.0b4.
fix_reader
into
develop
Overview
0
Commits
2
Pipelines
1
Changes
2
Merged
Mateusz Klimaszewski
requested to merge
fix_reader
into
develop
4 years ago
Overview
0
Commits
2
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
develop
version 1
c053d5ee
4 years ago
develop (base)
and
latest version
latest version
c053d5ee
2 commits,
4 years ago
version 1
c053d5ee
2 commits,
4 years ago
2 files
+
3
−
3
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
combo/data/dataset.py
+
2
−
2
Options
@@ -82,8 +82,8 @@ class UniversalDependenciesDatasetReader(allen_data.DatasetReader):
for
conllu_file
in
file_path
:
file
=
pathlib
.
Path
(
conllu_file
)
assert
conllu_file
and
file
.
exists
(),
f
"
File with path
'
{
conllu_file
}
'
does not exists!
"
with
file
.
open
(
"
r
"
):
for
annotation
in
conllu
.
parse_incr
(
f
ile
,
fields
=
self
.
fields
,
field_parsers
=
self
.
field_parsers
):
with
file
.
open
(
"
r
"
)
as
f
:
for
annotation
in
conllu
.
parse_incr
(
f
,
fields
=
self
.
fields
,
field_parsers
=
self
.
field_parsers
):
yield
self
.
text_to_instance
(
annotation
)
@overrides