docs: def _generate_ngrams_with_context_helper(ngrams_iter: iter, ngrams_len: int) -> map:
          """Updates the end index"""
          return map(lambda term: (term[1], term[0], term[0] + ngrams_len), enumerate(ngrams_iter))