class_docstr: :class:`DPoolPairDataGenerator` constructor.
  
  :param fixed_length_left: max length of left text.
  :param fixed_length_right: max length of right text.
  :param compress_ratio_left: the length change ratio,
      especially after normal pooling layers.
  :param compress_ratio_right: the length change ratio,
      especially after normal pooling layers.
docstr: Init.
docstr_tok: ["Init","."]
code: def __init__(
      self,
      fixed_length_left: int,
      fixed_length_right: int,
      compress_ratio_left: float = 1,
      compress_ratio_right: float = 1,
  ):
      """Init."""
      self._fixed_length_left = fixed_length_left
      self._fixed_length_right = fixed_length_right
      self._compress_ratio_left = compress_ratio_left
      self._compress_ratio_right = compress_ratio_right
  
imports: import numpy
  from matchzoo.data_generator.callbacks import Callback
label_desc: Use image node_id 1 to create a new DynamicPooling object from inherited base classes: Callback with example: obj = DynamicPooling(fixed_length_left, fixed_length_right, compress_ratio_left, compress_ratio_right)