This contains the source code of Latent Dirichlet Allocation, used to produce topic modelling of topic clusters from corpus of legal texts generated under 4 topics within Nigeria context– Employment Contract, Election Petition, Deeds, and Articles of Incorporation. The algorithm is implemented in python programming language