BTM-Java icon indicating copy to clipboard operation
BTM-Java copied to clipboard

Sorry,I want to know what this means

Open lhy2749 opened this issue 5 years ago • 3 comments

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

lhy2749 avatar Nov 20 '19 07:11 lhy2749

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.

ffftzh avatar Nov 26 '19 13:11 ffftzh

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

lhy2749 avatar Nov 29 '19 05:11 lhy2749

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.

ffftzh avatar Dec 04 '19 01:12 ffftzh