              from thinc.backends import contextvars_eq_thread_ops
  
              if not contextvars_eq_thread_ops():
                  warnings.warn(Warnings.W111)
 
</s> remove         lexeme_norms = self.vocab.lookups.get_table("lexeme_norm", {})
        if len(lexeme_norms) == 0 and self.vocab.lang in util.LEXEME_NORM_LANGS:
            langs = ", ".join(util.LEXEME_NORM_LANGS)
            util.logger.debug(Warnings.W033.format(model="parser or NER", langs=langs))
 </s> add         util.check_lexeme_norms(self.vocab, "parser or NER") </s> remove     if hasattr(func, "__qualname__") and hasattr(func, "__module__") \
        and func.__module__ in sys.modules:  # method
            cls_func = vars(sys.modules[func.__module__])[func.__qualname__.split(".")[0]]
            return hasattr(cls_func, attr)
 </s> add     if (
        hasattr(func, "__qualname__")
        and hasattr(func, "__module__")
        and func.__module__ in sys.modules
    ):  # method
        cls_func = vars(sys.modules[func.__module__])[func.__qualname__.split(".")[0]]
        return hasattr(cls_func, attr) </s> remove logger_stream_handler.setFormatter(logging.Formatter("[%(asctime)s] [%(levelname)s] %(message)s"))
 </s> add logger_stream_handler.setFormatter(
    logging.Formatter("[%(asctime)s] [%(levelname)s] %(message)s")
)
def check_lexeme_norms(vocab, component_name):
    lexeme_norms = vocab.lookups.get_table("lexeme_norm", {})
    if len(lexeme_norms) == 0 and vocab.lang in LEXEME_NORM_LANGS:
        langs = ", ".join(LEXEME_NORM_LANGS)
        logger.debug(Warnings.W033.format(model=component_name, langs=langs))
              from thinc.backends import contextvars_eq_thread_ops
  
              if not contextvars_eq_thread_ops():
                  warnings.warn(Warnings.W111)
def check_lexeme_norms(vocab, component_name):
    lexeme_norms = vocab.lookups.get_table("lexeme_norm", {})
    if len(lexeme_norms) == 0 and vocab.lang in LEXEME_NORM_LANGS:
        langs = ", ".join(LEXEME_NORM_LANGS)
        logger.debug(Warnings.W033.format(model=component_name, langs=langs))
keep keep keep add
 Update lexeme_norm checks

* Add util method for check
* Add new languages to list with lexeme norm tables
* Add check to all relevant components
* Add config details to warning message

Note that we're not actually inspecting the model config to see if
`NORM` is used as an attribute, so it may warn in cases where it's not
relevant. 
spacy/util.py