Skip to content
Permalink
Browse files

style(indexer): fix styles in indexer

  • Loading branch information...
hanxiao committed Sep 12, 2019
1 parent 6af410f commit 0b22029a4b3111723d9c533788c6b96d8ec7e508
Showing with 3 additions and 3 deletions.
  1. +3 −3 gnes/indexer/base.py
@@ -36,8 +36,8 @@ def __init__(self,
:type is_big_score_similar: when set to true, then larger score means more similar
"""
super().__init__(*args, **kwargs)
self.normalize_fn = normalize_fn if normalize_fn else ModifierScoreFn(context=self)
self.score_fn = score_fn if score_fn else ModifierScoreFn(context=self)
self.normalize_fn = normalize_fn if normalize_fn else ModifierScoreFn()
self.score_fn = score_fn if score_fn else ModifierScoreFn()
self.normalize_fn._context = self
self.score_fn._context = self
self.is_big_score_similar = is_big_score_similar
@@ -150,7 +150,7 @@ def num_chunks_in_doc(self, doc_id: int):
if self.helper_indexer:
return self.helper_indexer._num_chunks_in_doc[doc_id]
else:
self.logger.warning("enable helper_indexer to record num_chunks_in_doc")
self.logger.warning('enable helper_indexer to track num_chunks_in_doc')


class BaseDocIndexer(BaseIndexer):

0 comments on commit 0b22029

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