No need to train.TransfoXLTokenizer() doesn’t merge words like ByteLevelBPETokenizer().
Simply create your vocab file as a txt file with each word on a new line, and feed it’s path as a parameter to TransfoXLTokenizer():
tokenizer = TransfoXLTokenizer(vocab_file=vocab_path)