v0.3.0
Highlight: Dynamic KeyNMF
From version 0.3.0 you can use KeyNMF for dynamic topic modeling:
from datetime import datetime
from turftopic import KeyNMF
corpus: list[str] = [...]
timestamps = list[datetime] = [...]
model = KeyNMF(10)
doc_topic_matrix = model.fit_transform_dynamic(corpus, timestamps=timestamps, bins=10)
model.print_topics_over_time()
# This needs Plotly: pip install plotly
model.plot_topics_over_time()