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


style(indexer): fix styles in indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Xiao committed Sep 12, 2019
1 parent 6af410f commit 0b22029
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gnes/indexer/
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
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):
Expand Down

0 comments on commit 0b22029

Please sign in to comment.