Commit 84902983 authored by Hongkun Yu's avatar Hongkun Yu Committed by A. Unique TensorFlower
Browse files

Use data_loader interface for better readability.

PiperOrigin-RevId: 327569853
parent 8a835dbb
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment