Initialize a doc2bow mapper in scikit-learn.

sklearn_doc2bow(...)

sklearn_text2bow(...)

Arguments

...

Any other options, from the official documentation.