def METHOD_NAME(train_dir, test_dir, output_train_dir, output_test_dir,
                output_vocab_text, output_vocab_tag):
    print("start constuct word dict")
    vocab_text = build_dict(2, 0, train_dir, test_dir)
    with io.open(output_vocab_text, "w", encoding='utf-8') as wf:
        wf.write(u"{}\n".format(str(len(vocab_text))))
    vocab_tag = build_dict(0, 0, train_dir, test_dir)
    with io.open(output_vocab_tag, "w", encoding='utf-8') as wf:
        wf.write(u"{}\n".format(str(len(vocab_tag))))
    print("construct word dict done\n")
    write_paddle(vocab_text, vocab_tag, train_dir, test_dir, output_train_dir,
                 output_test_dir)