class_docstr: Class for splitting texts on tokens using NLTK wrapper over MosesTokenizer
  
  Attributes:
      escape: whether escape characters for use in html markup
      tokenizer: tokenizer instance from nltk.tokenize.moses
      detokenizer: detokenizer instance from nltk.tokenize.moses
  
  Args:
      escape: whether escape characters for use in html markup
code: def __init__(self, escape: bool = False, *args, **kwargs):
      self.escape = escape
      self.tokenizer = MosesTokenizer()
      self.detokenizer = MosesDetokenizer()
  
imports: from typing import Union, List
  from sacremoses import MosesDetokenizer, MosesTokenizer
  from deeppavlov.core.common.registry import register
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 1 to create a new NLTKMosesTokenizer object from inherited base classes: Component with example: obj = NLTKMosesTokenizer(escape)