code: def main_para(args):
      src_lang, tgt_lang = args.src_lang, args.tgt_lang
      corpus_processor = ParallelCorpusProcessor(
          src_lang=src_lang,
          tgt_lang=tgt_lang,
          src_tokenizer=args.src_tokenizer,
          tgt_tokenizer=args.tgt_tokenizer,
          max_ratio=args.max_ratio,
          min_num_words=args.min_num_words,
          max_num_words=args.max_num_words,
          discard_non_latin1=args.discard_non_latin1,
      )
      print("Clean the corpus:")
      print("   Source {}: {}".format(src_lang, args.src_corpus))
      print("   Target {}: {}".format(tgt_lang, args.tgt_corpus))
      if args.src_save_path is None:
          src_save_path = "corpus.tok.{}".format(src_lang)
      else:
          src_save_path = args.src_save_path
      if args.tgt_save_path is None:
          tgt_save_path = "corpus.tok.{}".format(tgt_lang)
      else:
          tgt_save_path = args.tgt_save_path
      print(
          "Save to {} -> {} \n"
          "        {} -> {}".format(
              src_lang, src_save_path, tgt_lang, tgt_save_path
          )
      )
      if (
          os.path.exists(src_save_path) or os.path.exists(tgt_save_path)
      ) and not args.overwrite:
          warnings.warn(
              "{} or {} exists, skip. If you need to overwrite these two files, "
              "rerun the script with --overwrite.".format(
                  src_save_path, tgt_save_path
              )
          )
      else:
          corpus_processor.process_parallel_corpus(
              src_corpus_paths=args.src_corpus,
              tgt_corpus_paths=args.tgt_corpus,
              src_out_path=src_save_path,
              tgt_out_path=tgt_save_path,
              num_process=args.num_process,
          )
  
imports: import argparse
  import os
  import multiprocessing
  import time
  import numpy
  import warnings
  import re
  from gluonnlp.data.filtering import MosesNormalizer
  from gluonnlp.data.tokenizers import MosesTokenizer, BaseTokenizer, WhitespaceTokenizer, JiebaTokenizer
  from typing import List, Union, Optional
label_desc: Use image node_id 7 for calling a global function with example usage: main_para(args) without return types