class_docstr: Build an EncodingVisualizer
  
  Args:
  
       tokenizer (:class:`~tokenizers.Tokenizer`):
          A tokenizer instance
  
       default_to_notebook (:obj:`bool`):
          Whether to render html output in a notebook by default
  
       annotation_converter (:obj:`Callable`, `optional`):
          An optional (lambda) function that takes an annotation in any format and returns
          an Annotation object
docstr: Args:
      text (:obj:`str`):
          The raw text we want to align to
  
      annotations (:obj:`AnnotationList`):
          A (possibly empty) list of annotations
  
  Returns:
      A list of  length len(text) whose entry at index i is None if there is no annotation on
      charachter i or k, the index of the annotation that covers index i where k is with
      respect to the list of annotations
docstr_tok: ["Args",":","text","(",":","obj",":","`","str","`",")",":","The","raw","text","we","want","to","align","to","annotations","(",":","obj",":","`","AnnotationList","`",")",":","A","(","possibly","empty",")","list","of","annotations","Returns",":","A","list","of","length","len","(","text",")","whose","entry","at","index","i","is","None","if","there","is","no","annotation","on","charachter","i","or","k",",","the","index","of","the","annotation","that","covers","index","i","where","k","is","with","respect","to","the","list","of","annotations"]
code: def __make_anno_map(
      text: str, annotations: AnnotationList
  ) -> PartialIntList:
      """
      Args:
          text (:obj:`str`):
              The raw text we want to align to
  
          annotations (:obj:`AnnotationList`):
              A (possibly empty) list of annotations
  
      Returns:
          A list of  length len(text) whose entry at index i is None if there is no annotation on
          charachter i or k, the index of the annotation that covers index i where k is with
          respect to the list of annotations
      """
      annotation_map = [None] * len(text)
      for anno_ix, a in enumerate(annotations):
          for i in range(a.start, a.end):
              annotation_map[i] = anno_ix
      return annotation_map
  
imports: import itertools
  import os
  import re
  from string import Template
  from typing import Any, Callable, Dict, List, NamedTuple, Optional, Tuple
  from tokenizers import Encoding, Tokenizer
label_desc: Use image node_id 6 for calling the EncodingVisualizer obj's underlying member method code with example usage: obj.__make_anno_map(text, annotations) and returns: annotation_map