Hi! This is my Machine Learning Shared Package I use for my personal projects, but feel free to use any of it. I can't promise it's well written tho.
Github link: https://github.com/YaboyJari/machine-learning-shared.
Bag of Words: given an array of sentences, makes a voc and creates a dense tensor.