From d003591a840c640ead552abe42853fcd9cbe8dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Kardos?= Date: Thu, 28 Nov 2024 08:55:56 +0100 Subject: [PATCH] Update README.md Co-authored-by: Kenneth Enevoldsen --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index de724af..ffd82f3 100644 --- a/README.md +++ b/README.md @@ -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)