Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants