code: def __init__(
      self,
      bpe_codes_file: str,
      lang_src: str = "en",
      lang_trg: str = "de",
      separator="@@",
  ):
      self.moses_tokenizer = MosesTokenizer(lang=lang_src)
      self.moses_detokenizer = MosesDetokenizer(lang=lang_trg)
      self.bpe_tokenizer = BPE(
          codes=codecs.open(bpe_codes_file, encoding="utf-8"),
          merges=-1,
          separator=separator,
          vocab=None,
          glossaries=None,
      )
  
file_path: PaddleHub/modules/text/machine_translation/transformer/en-de/utils.py
imports: import re
  from typing import List
  import codecs
  from sacremoses import MosesTokenizer, MosesDetokenizer
  from subword_nmt.apply_bpe import BPE
label_desc: Use image node_id 1 to create a new MTTokenizer object from inherited base classes: object with example: obj = MTTokenizer(bpe_codes_file, lang_src, lang_trg, separator)