I appreciate your work here but I think you should spit this up into a series of article with each of them talking in detail about NLM and ML separately and finally integrating both of them to achieve the task of finding a theme from a paragraph. Even for a person who has some knowledge of NLM and ML, this article is vague and seems to be nothing more but patch work of code. I wish I could learn more from your work... Thanks for reading..