Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
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
Syntactic Tools
combo
Commits
7a2f7973
Commit
7a2f7973
authored
Apr 19, 2023
by
Maja Jablonska
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary AllenNLP comments
parent
76a782fe
No related branches found
No related tags found
1 merge request
!46
Merge COMBO 3.0 into master
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
combo/data/dataset_readers/dataset_reader.py
+0
-11
0 additions, 11 deletions
combo/data/dataset_readers/dataset_reader.py
with
0 additions
and
11 deletions
combo/data/dataset_readers/dataset_reader.py
+
0
−
11
View file @
7a2f7973
...
...
@@ -64,17 +64,6 @@ class DatasetReader(IterableDataset):
yield
instance
def
_read
(
self
)
->
Iterable
[
Instance
]:
"""
Reads the instances from the given `file_path` and returns them as an
`Iterable`.
You are strongly encouraged to use a generator so that users can
read a dataset in a lazy way, if they so choose.
"""
# NOTE: `file_path` is left untyped here on purpose.
# Technically the type should be `DatasetReaderInput`, but many subclass
# implementations of `DatasetReader` define their `_read()` method to take a more
# specific type, such as just `str`. But that would be a type error
# according to mypy: https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides
raise
NotImplementedError
def
apply_token_indexers
(
self
,
instance
:
Instance
)
->
None
:
...
...
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