docstr: Find all the n-tuple from tokens that may be a name
  and splice it into a string
  
  :param int max_name_len: The list is composed of dicts which
      the key string is n-tuples spliced into strings, and the key indices
       is the index of n-tuples in the original sentence
  :return list tup_list
docstr_tok: ["Find","all","the","n-tuple","from","tokens","that","may","be","a","name","and","splice","it","into","a","string",":","param","int","max_name_len",":","The","list","is","composed","of","dicts","which","the","key","string","is","n-tuples","spliced","into","strings",",","and","the","key","indices","is","the","index","of","n-tuples","in","the","original","sentence",":","return","list","tup_list"]
code: def concat_token(self, max_name_len):
      r"""
      Find all the n-tuple from tokens that may be a name
      and splice it into a string
  
      :param int max_name_len: The list is composed of dicts which
          the key string is n-tuples spliced into strings, and the key indices
           is the index of n-tuples in the original sentence
      :return list tup_list
  
      """
      assert isinstance(
          max_name_len, int
      ), "max_name_len must be type int"
      assert max_name_len > 0, "max_name_len must be upper than zero"
      tokens = self.get_words("x")
      tup_list = []
      for i in range(len(tokens)):
          current_str = tokens[i]
          tup_list.append(
              {"string": current_str, "indices": [i, i + 1]}
          )
          for j in range(1, max_name_len):
              if i + j < len(tokens):
                  current_str += " %s" % tokens[i + j]
                  tup_list.append(
                      {"string": current_str, "indices": [i, i + j + 1]}
                  )
              else:
                  break
      return tup_list
  
file_path: textflint/textflint/input/component/sample/sa_sample.py
imports: from .sample import Sample
  from ..field import Field, TextField
  from collections import OrderedDict
label_desc: Use image node_id 8 for calling the SASample obj's underlying member method code with example usage: obj.concat_token(max_name_len) and returns: tup_list