Authorship attribution based on a probabilistic topic model