Skip to content

Add Bag-of-Words converter#358

Merged
cristian-tamblay merged 4 commits into
developfrom
feat/bow-converter
Oct 29, 2025
Merged

Add Bag-of-Words converter#358
cristian-tamblay merged 4 commits into
developfrom
feat/bow-converter

Conversation

@Irozuku
Copy link
Copy Markdown
Collaborator

@Irozuku Irozuku commented Oct 27, 2025

This pull request adds a new Bag-of-Words text preprocessing converter to the backend, enabling text data to be transformed into token frequency columns using scikit-learn's CountVectorizer.

New Bag-of-Words Converter Implementation:

  • Added BagOfWordsConverter class in scikit_learn/bag_of_words.py, which uses scikit-learn's CountVectorizer to convert text into a Bag-of-Words representation. It supports customizable hyperparameters for max features, lowercase conversion, stop word removal, and n-gram bounds.
image image

(1,2) n-grams

image

@cristian-tamblay cristian-tamblay merged commit 8539141 into develop Oct 29, 2025
18 checks passed
@cristian-tamblay cristian-tamblay deleted the feat/bow-converter branch October 29, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants