code: def generate_text(self, max_length=None):
          
          return self._text_generator(next_token=self._generate_next_token, max_length=max_length)
docs: Generates sentences from a given corpus
          max_length: maximum number of emissions
          Returns:
              Properly formatted string of generated sentences