docstr: Appends the tail part of the text to the new sampled head.
  
  Parameters
  ----------
  raw
      New sampled heads.
  
  Returns
  -------
  full_raw
      Concatenation of the new sampled head with the original tail.
docstr_tok: ["Appends","the","tail","part","of","the","text","to","the","new","sampled","head",".","Parameters","--","--","--","--","--","raw","New","sampled","heads",".","Returns","--","--","--","-","full_raw","Concatenation","of","the","new","sampled","head","with","the","original","tail","."]
code: def _append_tail(self, raw: np.ndarray) -> np.ndarray:
      """
      Appends the tail part of the text to the new sampled head.
  
      Parameters
      ----------
      raw
          New sampled heads.
  
      Returns
      -------
      full_raw
          Concatenation of the new sampled head with the original tail.
      """
      full_raw = []
  
      for i in range(raw.shape[0]):
          new_head_tokens = self.model.tokenizer.tokenize(raw[i])
          new_tokens = new_head_tokens + self.tail_tokens
          full_raw.append(
              self.model.tokenizer.convert_tokens_to_string(new_tokens)
          )
  
      # convert to array and return
      return np.array(full_raw, dtype=self.dtype_sent)
  
imports: import string
  from functools import partial
  from typing import Dict, List, Optional, Tuple
  import numpy
  import tensorflow
  from alibi.utils.lang_model import LanguageModel
  from alibi.explainers.anchors.text_samplers import AnchorTextSampler
label_desc: Use image node_id 7 for calling the LanguageModelSampler obj's underlying member method code with example usage: obj._append_tail(raw) and returns: np