BTM-Java
BTM-Java copied to clipboard
Sorry,I want to know what this means
line 172: Collections.sort(maplist, (o1, o2) -> o2.getValue().compareTo(o1.getValue())); This line is error on my computer.
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.
thanks for your reply.But i do not know where the Dirichlet(α) and Dirichlet(β) in this code?could you please tell me ?
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.