baidu / Familia

A Toolkit for Industrial Topic Modeling
BSD 3-Clause "New" or "Revised" License
2.64k stars 597 forks source link

ModuleNotFoundError: No module named 'familia' #109

Open xiucuiZhu opened 4 years ago

xiucuiZhu commented 4 years ago

i want to use the sentenceLDA model. i run the command: $ sh build.sh $ cd model $ sh download_model.sh $ cd .. when building ,it arised some warnings but no error. then i run this command in python(import familia),it arised ModuleNotFoundError.what's wrong?

DesmonDay commented 4 years ago

Hello. I also try to import familia, but met other problems. It seems hard for everyone to use correctly. Actually, I implement the python version Familia. If you want to use LDA model, you can use PaddleHub: https://www.paddlepaddle.org.cn/hublist?filter=en_category&value=SemanticModel . However, if you want to use SLDA model, you can visit here: https://github.com/DesmonDay/Familia_PaddleHub

I will try to optimize the SLDA model later, and add it to the official PaddleHub.

xiucuiZhu commented 4 years ago

thanks you, I want to use SLDA model to calculating similarity of two sentence. I look up the code at https://github.com/DesmonDay/Familia_PaddleHub, and found SLDA model only supply two functions: infer_doc_topic_distribution() and show_topic_keywords(). Will you supply other methods in SLDA model such as cal_doc_distance(), cal_doc_keywords_similarity(), cal_query_doc_similarity() in LDA model.

DesmonDay commented 4 years ago

Ok. I will tell you once done.

xiucuiZhu commented 4 years ago

Thank you very much!

DesmonDay commented 4 years ago

Hi. I provide the other three functions for SLDA model. But remember to read README.md(where I add some notes.) first.