Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
84902983
Commit
84902983
authored
Aug 19, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Aug 19, 2020
Browse files
Use data_loader interface for better readability.
PiperOrigin-RevId: 327569853
parent
8a835dbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/nlp/data/tagging_dataloader.py
official/nlp/data/tagging_dataloader.py
+2
-1
No files found.
official/nlp/data/tagging_dataloader.py
View file @
84902983
...
...
@@ -21,6 +21,7 @@ import tensorflow as tf
from
official.core
import
input_reader
from
official.modeling.hyperparams
import
config_definitions
as
cfg
from
official.nlp.data
import
data_loader
from
official.nlp.data
import
data_loader_factory
...
...
@@ -33,7 +34,7 @@ class TaggingDataConfig(cfg.DataConfig):
@
data_loader_factory
.
register_data_loader_cls
(
TaggingDataConfig
)
class
TaggingDataLoader
:
class
TaggingDataLoader
(
data_loader
.
DataLoader
)
:
"""A class to load dataset for tagging (e.g., NER and POS) task."""
def
__init__
(
self
,
params
:
TaggingDataConfig
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment