Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'familia' #109

Open
xc005 opened this issue Aug 4, 2020 · 5 comments
Open

ModuleNotFoundError: No module named 'familia' #109

xc005 opened this issue Aug 4, 2020 · 5 comments

Comments

@xc005
Copy link

xc005 commented Aug 4, 2020

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
Copy link
Collaborator

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.

@xc005
Copy link
Author

xc005 commented Aug 4, 2020

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
Copy link
Collaborator

Ok. I will tell you once done.

@xc005
Copy link
Author

xc005 commented Aug 4, 2020

Thank you very much!

@DesmonDay
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants