format conversion for lda tries