Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating imports and functions to work out the box #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EdMasterNava
Copy link

First change: BERTopic's ClassTFIDF module was renamed to ClassTfidfTransformer and moved to be found at bertopic.vectorizers._ctfidf

Second Change: Switched model and truncate values to reflect what's printed in LLMU's module 2 Topic Modeling chapter. "small-20220425" switched to "small" and "RIGHT" switched to "LEFT"

Third Change: When defining variable "words", "count_vectorizer.get_feature_names()" is called and gives an error. Should be changed to "count_vectorizer.get_feature_names_out()"

Fourth Change: Changing function name to reflect new import. "ctfidf = ClassTFIDF().fit_transform(count).toarray()" switched to "ctfidf = ClassTfidfTransformer().fit_transform(count).toarray()"

@CLAassistant
Copy link

CLAassistant commented Jul 6, 2023

CLA assistant check
All committers have signed the CLA.

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