class_docstr: Interface for ranking data parser.
class_docstr_tok: ["Interface","for","ranking","data","parser","."]
docstr: Constructor.
docstr_tok: ["Constructor","."]
code: def __init__(
      self,
      list_size=None,
      context_feature_spec=None,
      example_feature_spec=None,
      size_feature_name=None,
      mask_feature_name=None,
      shuffle_examples=False,
      seed=None,
  ):
      """Constructor."""
      if not example_feature_spec:
          raise ValueError(
              "example_feature_spec {} must not be empty.".format(
                  example_feature_spec
              )
          )
      if list_size is None or list_size <= 0:
          self._list_size = None
      else:
          self._list_size = list_size
      self._context_feature_spec = context_feature_spec
      self._example_feature_spec = example_feature_spec
      self._size_feature_name = size_feature_name
      self._mask_feature_name = mask_feature_name
      self._shuffle_examples = shuffle_examples
      self._seed = seed
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import functools
  import six
  import tensorflow
  from tensorflow import estimator
  from google.protobuf import descriptor_pb2
  from tensorflow_ranking.python import utils
label_desc: Use image node_id 1 to create a new _RankingDataParser object from inherited base classes: object with example: obj = _RankingDataParser(list_size, context_feature_spec, example_feature_spec, size_feature_name, mask_feature_name, shuffle_examples, seed)