class_docstr: Provides functionality for components that do entity extraction.
  
  Inheriting from this class will add utility functions for entity extraction.
  Entity extraction is the process of identifying and extracting entities like a
  person's name, or a location from a message.
class_docstr_tok: ["Provides","functionality","for","components","that","do","entity","extraction",".","Inheriting","from","this","class","will","add","utility","functions","for","entity","extraction",".","Entity","extraction","is","the","process","of","identifying","and","extracting","entities","like","a","person","'s","name",",","or","a","location","from","a","message","."]
docstr: Get the value of the given tag name from the list of tags.
  
  Args:
      tags: Mapping of tag name to list of tags;
      tag_name: The tag name of interest.
      idx: The index position of the tag.
  
  Returns:
      The tag value.
docstr_tok: ["Get","the","value","of","the","given","tag","name","from","the","list","of","tags",".","Args",":","tags",":","Mapping","of","tag","name","to","list","of","tags",";","tag_name",":","The","tag","name","of","interest",".","idx",":","The","index","position","of","the","tag",".","Returns",":","The","tag","value","."]
code: def get_tag_for(
      tags: Dict[Text, List[Text]], tag_name: Text, idx: int
  ) -> Text:
      """Get the value of the given tag name from the list of tags.
  
      Args:
          tags: Mapping of tag name to list of tags;
          tag_name: The tag name of interest.
          idx: The index position of the tag.
  
      Returns:
          The tag value.
      """
      if tag_name in tags:
          return tags[tag_name][idx]
      return NO_ENTITY_TAG
  
imports: import abc
  from typing import Any, Dict, List, NamedTuple, Text, Tuple, Optional
  import rasa.shared.utils.io
  from rasa.shared.constants import DOCS_URL_TRAINING_DATA_NLU
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.message import Message
  from rasa.nlu.tokenizers.tokenizer import Token
  from rasa.nlu.constants import TOKENS_NAMES, ENTITY_ATTRIBUTE_CONFIDENCE_TYPE, ENTITY_ATTRIBUTE_CONFIDENCE_ROLE, ENTITY_ATTRIBUTE_CONFIDENCE_GROUP
  from rasa.shared.nlu.constants import TEXT, INTENT, ENTITIES, ENTITY_ATTRIBUTE_VALUE, ENTITY_ATTRIBUTE_START, ENTITY_ATTRIBUTE_END, EXTRACTOR, ENTITY_ATTRIBUTE_TYPE, ENTITY_ATTRIBUTE_GROUP, ENTITY_ATTRIBUTE_ROLE, NO_ENTITY_TAG, SPLIT_ENTITIES_BY_COMMA, SINGLE_ENTITY_ALLOWED_INTERLEAVING_CHARSET
  import rasa.utils.train_utils
label_desc: Use image node_id 10 for calling the EntityExtractorMixin obj's underlying member method code with example usage: obj.get_tag_for(tags, tag_name, idx) and returns: NO_ENTITY_TAG, tags