modify to work on LdaModel format when outputting the results into csv