in src/text_clustering.py [0:0]
def show(self, interactive=False):
df = pd.DataFrame(
data={
"X": self.projections[:, 0],
"Y": self.projections[:, 1],
"labels": self.cluster_labels,
"content_display": [
textwrap.fill(txt[:1024], 64) for txt in self.texts
],
}
)
if interactive:
self._show_plotly(df)
else:
self._show_mpl(df)