I have taught several courses in text mining and machine learning.
I have posted some lecture slides on Github .
I have also posted the source code that I wrote for several of my projects on https://github.com/sekhansen/text-mining-tutorial , where you can also find an accompanying tutorial.
An introduction to text mining for central banks I wrote with David Bholat, Cheryl Schonhardt-Bailey, and Pedro Santos is here .