Skip to content Skip to sidebar Skip to footer

PyLDAvis: Validation Error On Trying To Visualize Topics With BTM

I tried generating topics using BTM. On trying to visualize the topics, I get a validation error. I can print the topics after model training, but it fails on using pyLDAvis def bt

Solution 1:

In my case, this happened because I had some sentences with only a few tokens. I removed all the sentences with less than three tokens and it worked like charm.


Post a Comment for "PyLDAvis: Validation Error On Trying To Visualize Topics With BTM"