ffftzh / BTM-Java

A java implement of Biterm Topic Model
20 stars 6 forks source link

Sorry,I want to know what this means #2

Open lhy2749 opened 4 years ago

lhy2749 commented 4 years ago

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

ffftzh commented 4 years ago

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 commented 4 years ago

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

ffftzh commented 4 years ago

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.