I encountered a TypeError when indexing the dataset object using a NumPy integer. The error occurred while generating document visualizations with BERTopic using the following code snippet:
`fig = topic_model.visualize_documents(
titles,
reduced_embeddings=reduced_embeddings,
width=1200,
hide_annotations=True
)
fig.update_layout(font=dict(size=16))`