Skip to content

Commit

Permalink
reformatted readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tabdeveloping committed Jan 7, 2025
1 parent 308806f commit b5145bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ Turftopic now also comes with a Chinese vectorizer for easier use.
from turftopic import KeyNMF
from turftopic.vectorizers.chinese import default_chinese_vectorizer

model = KeyNMF(10, vectorizer=default_chinese_vectorizer(), encoder="BAAI/bge-small-zh-v1.5")
model = KeyNMF(
n_components=10,
vectorizer=default_chinese_vectorizer(),
encoder="BAAI/bge-small-zh-v1.5"
)
model.fit(corpus)

model.print_topics()
Expand Down

0 comments on commit b5145bf

Please sign in to comment.