Skip to content

Commit

Permalink
vectorizer.get_feature_names method update due to scikit-learn>=1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wanadzhar913 authored Jul 26, 2024
1 parent d166194 commit 21e9d47
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 21e9d47

Please sign in to comment.