code: def compute_indices(text: str, tokens):
      indices = []
      for i, token in enumerate(tokens):
          if 1 <= i:
              current_index = indices[-1] + len(tokens[i - 1])
              indices.append(
                  current_index + text[current_index:].find(token)
              )
          else:
              indices.append(text.find(token))
      return indices
  
imports: import logging
  import re
  from abc import abstractmethod
  from typing import List
  from nltk.tokenize import TreebankWordTokenizer
  from nltk.tokenize.punkt import PunktParameters, PunktSentenceTokenizer
label_desc: Use image node_id 1 for calling the CLTKTreebankWordTokenizer obj's underlying member method code with example usage: obj.compute_indices(text, tokens) and returns: indices