Open cegme opened 12 years ago
We can create a function keyword_rank
that takes the user option array and compares all the results of the keyword search to provide a ranking.
We can add this to the web/query.php function.
Here is some pseudocode:
double keyword_rank (int[] user_options. int[] topic_distribution) { return kl(user_options, topic_distribution); }
So this computes the kl divergence between the given over_options array and the paper topic distribution.
Keyword search does not include user topics.
The keyword search should include the user preferences specified by the User Model.