Skip to content

Commit

Permalink
Merge pull request #42 from rbroc/fix-neg-doc-ranking
Browse files Browse the repository at this point in the history
fix ranking of negative documents
  • Loading branch information
x-tabdeveloping authored Jun 6, 2024
2 parents 89a96a5 + 26e56c9 commit 0ec180e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions turftopic/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def _representative_docs(
lowest = lowest[
np.argsort(document_topic_matrix[lowest, topic_id])
]
lowest = lowest[::-1]
scores = document_topic_matrix[lowest, topic_id]
for document_id, score in zip(lowest, scores):
doc = raw_documents[document_id]
Expand Down

0 comments on commit 0ec180e

Please sign in to comment.