class_docstr: Regular expression tagger, inheriting from
  ``SequentialBackoffLemmatizer`` and ``RegexpTagger``.
class_docstr_tok: ["Regular","expression","tagger",",","inheriting","from","``","SequentialBackoffLemmatizer","``","and","``","RegexpTagger","``","."]
docstr: Use regular expressions for rules-based lemmatizing based on word endings;
  tokens are matched for patterns with the base kept as a group; an word ending
  replacement is added to the (base) group.
  :rtype: str
  :type tokens: list
  :param tokens: List of tokens to be lemmatized
  :type index: int
  :param index: Int with current token
  :type history: list
  :param history: List with tokens that have already been lemmatized; NOT USED
docstr_tok: ["Use","regular","expressions","for","rules-based","lemmatizing","based","on","word","endings",";","tokens","are","matched","for","patterns","with","the","base","kept","as","a","group",";","an","word","ending","replacement","is","added","to","the","(","base",")","group",".",":","rtype",":","str",":","type","tokens",":","list",":","param","tokens",":","List","of","tokens","to","be","lemmatized",":","type","index",":","int",":","param","index",":","Int","with","current","token",":","type","history",":","list",":","param","history",":","List","with","tokens","that","have","already","been","lemmatized",";","NOT","USED"]
code: def choose_tag(
      self, tokens: List[str], index: int, history: List[str]
  ):
      """Use regular expressions for rules-based lemmatizing based on word endings;
      tokens are matched for patterns with the base kept as a group; an word ending
      replacement is added to the (base) group.
      :rtype: str
      :type tokens: list
      :param tokens: List of tokens to be lemmatized
      :type index: int
      :param index: Int with current token
      :type history: list
      :param history: List with tokens that have already been lemmatized; NOT USED
      """
      for pattern, replace in self._regexs:
          if re.search(pattern, tokens[index]):
              return re.sub(pattern, replace, tokens[index])
  
imports: import re
  import reprlib
  from typing import Dict, List, Optional, Tuple
  from nltk.tag.sequential import RegexpTagger, SequentialBackoffTagger, TaggerI, UnigramTagger
label_desc: Use image node_id 2 for calling the RegexpLemmatizer obj's underlying member method code with example usage: obj.choose_tag(tokens, index, history) and returns: re