x-tabdeveloping / topicwizard

Powerful topic model visualization in Python
https://x-tabdeveloping.github.io/topicwizard/
MIT License
96 stars 13 forks source link

Compatibility for Chinese #4

Open jsnleong opened 1 year ago

jsnleong commented 1 year ago

Hi! Thanks for this awesome package!

Currently am applying this package on Chinese language text corpus. The output generated are "empty squares" - the reason behind this is that we need to use explicit Language fonts (.tff file which I have). Any idea how to incorporate this external font file to this package for use?

Thanks!

x-tabdeveloping commented 1 year ago

Hello! Is it all graphs, or is this only the wordclouds?

x-tabdeveloping commented 1 year ago

This Stackoverflow thread could be of use to you.

Since topicwizard is essentially just a dash app, you can deal with this the same way they do. For the main file I would use the get_dash_app function so that you have a more direct access to the underlying application object. I can't confirm if this actually works, but it's worth a try ;)

x-tabdeveloping commented 1 year ago

As for the wordclouds, I will try to expose the font API somehow, I will post to this thread when I've made progress.