Skip to content
Permalink
Browse files

feat(reduce router): add chunk and doc reduce routers for audio

  • Loading branch information...
jemmyshin committed Aug 8, 2019
1 parent 8026c17 commit 23c6e68aff81fbd4c0f063846637a9b939e53745
Showing with 3 additions and 3 deletions.
  1. +3 −3 gnes/router/reduce/chunk_sum.py
@@ -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')

0 comments on commit 23c6e68

Please sign in to comment.
You can’t perform that action at this time.