Skip to content

Commit

Permalink
Update bm250kapi.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisonooo authored Sep 5, 2024
1 parent 00c2a14 commit 28b6b0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions huixiangdou/primitive/bm250kapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def _tokenize_corpus(self, corpus):

def save(self, chunks:List[Chunk], filedir:str):
# generate idf with corpus
if len(chunks) < 1:
return
self.chunks = chunks

filtered_corpus = []
Expand Down

0 comments on commit 28b6b0d

Please sign in to comment.