Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Enevoldsen <[email protected]>
  • Loading branch information
x-tabdeveloping and KennethEnevoldsen authored Nov 28, 2024
1 parent c4a0b4e commit d003591
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ You will first have to install `datamapplot` for this to work.
from turftopic import ClusteringTopicModel
from turftopic.namers import OpenAITopicNamer

model = ClusteringTopicModel(feature_importance="centroid").fit(corpus)
model = ClusteringTopicModel(feature_importance="centroid")
model.fit(corpus)

namer = OpenAITopicNamer("gpt-4o-mini")
model.rename_topics(namer)
Expand Down

0 comments on commit d003591

Please sign in to comment.