From 0b78798d5e6dc0b1b4df9ffd547b611ad837a467 Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Tue, 3 Sep 2019 16:53:58 +0800 Subject: [PATCH] feat(score_fn): add score_fn as a new module --- gnes/indexer/base.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gnes/indexer/base.py b/gnes/indexer/base.py index 6bc6b7aa..632f093d 100644 --- a/gnes/indexer/base.py +++ b/gnes/indexer/base.py @@ -62,10 +62,6 @@ def query_and_score(self, q_chunks: List['gnes_pb2.Chunk'], top_k: int, *args, * results.append(r) return results - # def score(self, q_chunk: 'gnes_pb2.Chunk', d_chunk: 'gnes_pb2.Chunk', - # relevance, relevance_cls) -> 'gnes_pb2.Response.QueryResponse.ScoredResult.Score': - # return ChunkScorer.eq1(q_chunk, d_chunk, relevance, relevance_cls) - class BaseDocIndexer(BaseIndexer):