Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
refactor(proto): refactor offset nd
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Aug 27, 2019
1 parent cf53d29 commit c3ebb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnes/service/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def _cal_offset_relevance(q_offset, i_offset):
r.score = _weight * qc_weight * _relevance * offset_relevance
r.score_explained = '[chunk_score at doc: %d, offset: %d] = ' \
'(doc_chunk_weight: %.6f) * ' \
'(query_doc_chunk_relevance: %.6f) * ' \
'(chunk_offset_relevance: %.6f) * ' \
'(chunk_relevance: %.6f) * ' \
'(offset_divergence: %.6f) * ' \
'(query_chunk_weight: %.6f)' % (
_doc_id, _offset, _weight, _relevance, offset_relevance, qc_weight)
msg.response.search.top_k = topk
Expand Down

0 comments on commit c3ebb93

Please sign in to comment.