Text analysis with bag of word instead of a corpus

Hi there!
I am working on a text analysis. Instead of a corpus I have a bag of words. How can I import/declare it as such in python?
Thanks in advantage!

Hi!

Does this help?:

https://www.codecademy.com/learn/natural-language-processing/modules/nlp-bag-of-words-language-model-module

Best regards,
Vince