Skip to content

Commit 0ec180e

Browse files
Merge pull request #42 from rbroc/fix-neg-doc-ranking
fix ranking of negative documents
2 parents 89a96a5 + 26e56c9 commit 0ec180e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

turftopic/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ def _representative_docs(
217217
lowest = lowest[
218218
np.argsort(document_topic_matrix[lowest, topic_id])
219219
]
220+
lowest = lowest[::-1]
220221
scores = document_topic_matrix[lowest, topic_id]
221222
for document_id, score in zip(lowest, scores):
222223
doc = raw_documents[document_id]

0 commit comments

Comments
 (0)