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

Sorry,I want to know what this means #2

Open
lhy2749 opened this issue Nov 20, 2019 · 3 comments
Open

Sorry,I want to know what this means #2

lhy2749 opened this issue Nov 20, 2019 · 3 comments

Comments

@lhy2749
Copy link

lhy2749 commented Nov 20, 2019

line 172: Collections.sort(maplist, (o1, o2) -> o2.getValue().compareTo(o1.getValue()));
This line is error on my computer.

@ffftzh
Copy link
Owner

ffftzh commented Nov 26, 2019

The maplist stores all [wordId, weight_in_the_topic] pair for a topic. This line only sorts maplist based on weight_in_the_topic.
After sorting the list, we can retrieve the top N words with the highest weights of a topic.

Maybe you can paste your exception stack here so that we can find out what's happened.

@lhy2749
Copy link
Author

lhy2749 commented Nov 29, 2019

thanks for your reply.But i do not know where the Dirichlet(α) and Dirichlet(β) in this code?could you please tell me ?

@ffftzh
Copy link
Owner

ffftzh commented Dec 4, 2019

In Readme, you will find Dirichlet(α) as alpha and Dirichlet(β) as beta. Both of them are the parameters inputed by user to run the code.

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