class_docstr: This class implements a model-specific automatic speech recognizer using the end-to-end speech recognizer in
  Espresso.
  
  | Paper link: https://arxiv.org/abs/1909.08723
class_docstr_tok: ["This","class","implements","a","model-specific","automatic","speech","recognizer","using","the","end-to-end","speech","recognizer","in","Espresso",".","|","Paper","link",":","https",":","\/\/arxiv.org\/abs\/1909.08723"]
docstr: Fit the estimator on the training set `(x, y)`.
  
  :param x: Samples of shape (nb_samples, seq_length). Note that, it is allowable that sequences in the batch
            could have different lengths. A possible example of `x` could be:
            `x = np.array([np.array([0.1, 0.2, 0.1, 0.4]), np.array([0.3, 0.1])])`.
  :param y: Target values of shape (nb_samples). Each sample in `y` is a string and it may possess different
            lengths. A possible example of `y` could be: `y = np.array(['SIXTY ONE', 'HELLO'])`.
  :param batch_size: Size of batches.
  :param nb_epochs: Number of epochs to use for training.
  :param kwargs: Dictionary of framework-specific arguments. This parameter is not currently supported for PyTorch
                 and providing it takes no effect.
docstr_tok: ["Fit","the","estimator","on","the","training","set","`","(","x",",","y",")","`",".",":","param","x",":","Samples","of","shape","(","nb_samples",",","seq_length",")",".","Note","that",",","it","is","allowable","that","sequences","in","the","batch","could","have","different","lengths",".","A","possible","example","of","`","x","`","could","be",":","`","x","=","np.array","(","[","np.array","(","[","0.1",",","0.2",",","0.1",",","0.4","]",")",",","np.array","(","[","0.3",",","0.1","]",")","]",")","`",".",":","param","y",":","Target","values","of","shape","(","nb_samples",")",".","Each","sample","in","`","y","`","is","a","string","and","it","may","possess","different","lengths",".","A","possible","example","of","`","y","`","could","be",":","`","y","=","np.array","(","[","'SIXTY","ONE","'",",","'HELLO","'","]",")","`",".",":","param","batch_size",":","Size","of","batches",".",":","param","nb_epochs",":","Number","of","epochs","to","use","for","training",".",":","param","kwargs",":","Dictionary","of","framework-specific","arguments",".","This","parameter","is","not","currently","supported","for","PyTorch","and","providing","it","takes","no","effect","."]
code: def fit(
      self,
      x: np.ndarray,
      y: np.ndarray,
      batch_size: int = 128,
      nb_epochs: int = 10,
      **kwargs,
  ) -> None:
      """
      Fit the estimator on the training set `(x, y)`.
  
      :param x: Samples of shape (nb_samples, seq_length). Note that, it is allowable that sequences in the batch
                could have different lengths. A possible example of `x` could be:
                `x = np.array([np.array([0.1, 0.2, 0.1, 0.4]), np.array([0.3, 0.1])])`.
      :param y: Target values of shape (nb_samples). Each sample in `y` is a string and it may possess different
                lengths. A possible example of `y` could be: `y = np.array(['SIXTY ONE', 'HELLO'])`.
      :param batch_size: Size of batches.
      :param nb_epochs: Number of epochs to use for training.
      :param kwargs: Dictionary of framework-specific arguments. This parameter is not currently supported for PyTorch
                     and providing it takes no effect.
      """
      raise NotImplementedError
  
imports: import ast
  from argparse import Namespace
  import logging
  from typing import Dict, List, Optional, Tuple, TYPE_CHECKING, Union
  import numpy
  from art import config
  from art.estimators.pytorch import PyTorchEstimator
  from art.estimators.speech_recognition.speech_recognizer import SpeechRecognizerMixin, PytorchSpeechRecognizerMixin
  from art.utils import get_file
label_desc: Use image node_id 4 for calling the PyTorchEspresso obj's underlying member method code with example usage: obj.fit(x, y, batch_size, nb_epochs) without return types