Skip to content

Commit

Permalink
Merge pull request #212 from wanadzhar913/master
Browse files Browse the repository at this point in the history
`vectorizer.get_feature_names` method update due to `scikit-learn>=1.2`
  • Loading branch information
huseinzol05 authored Jul 28, 2024
2 parents d166194 + 21e9d47 commit d751244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion malaya/topic_model/decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def fit(
corpus[i] = cleaning(corpus[i])

tf = vectorizer.fit_transform(corpus)
tf_features = vectorizer.get_feature_names()
tf_features = vectorizer.get_feature_names_out()
compose = model(n_topics).fit(tf)
return Topic(
tf_features, compose, corpus, compose.transform(tf), vectorizer, tf
Expand Down

0 comments on commit d751244

Please sign in to comment.