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

Commit

Permalink
feat(reduce router): add chunk and doc reduce routers for audio
Browse files Browse the repository at this point in the history
  • Loading branch information
jemmyshin committed Aug 8, 2019
1 parent 8026c17 commit 23c6e68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gnes/router/reduce/chunk_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def apply(self, msg: 'gnes_pb2.Message', accum_msgs: List['gnes_pb2.Message'], *
doc_score = defaultdict(float)
doc_score_explained = defaultdict(str)

for id, s, ex in zip(all_docs_id, all_docs_socres, all_score_explained):
doc_score[id] += s
doc_score_explained[id] += '%s\n' % ex
for id_, s, ex in zip(all_docs_id, all_docs_socres, all_score_explained):
doc_score[id_] += s
doc_score_explained[id_] += '%s\n' % ex

msg.response.search.ClearField('topk_results')

Expand Down

0 comments on commit 23c6e68

Please sign in to comment.