add text processing functions for LDA