Commit dc0c1c31 authored by Koen van der Veen's avatar Koen van der Veen
Browse files

fix clustering bug

No related merge requests found
Pipeline #12447 passed with stages
in 25 minutes and 18 seconds
Showing with 1 addition and 1 deletion
+1 -1
......@@ -83,7 +83,7 @@ class TwitterTopicModelPlugin(PluginBase):
tweets_by_id = {tweet.id: tweet for tweet in tweets}
for cluster in clusters:
cluster.tweets = [tweets_by_id[t.id] for t in tweets]
cluster.tweets = [tweets_by_id[t.id] for t in cluster.tweets]
unassigned_tweets = [tweets_by_id[t.id] for t in unassigned_tweets]
return clusters, unassigned_tweets
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment