Sophia Koehler commited on
Commit
b91726c
·
1 Parent(s): 53dd1eb
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ class BM25Index(InvertedIndex):
83
  @classmethod
84
  def build_from_documents(
85
  cls: Type["BM25Index"], documents: List[Document], avgdl: float, total_docs: int, k1: float = 0.9, b: float = 0.4
86
- ) -> BM25Index:
87
  # Assume run_counting() is defined to return counting object with relevant data
88
  counting = run_counting(documents, simple_tokenize)
89
  BM25Index.cache_term_weights(counting.posting_lists, total_docs, avgdl, counting.dfs, counting.dls, k1, b)
 
83
  @classmethod
84
  def build_from_documents(
85
  cls: Type["BM25Index"], documents: List[Document], avgdl: float, total_docs: int, k1: float = 0.9, b: float = 0.4
86
+ ) -> "BM25Index":
87
  # Assume run_counting() is defined to return counting object with relevant data
88
  counting = run_counting(documents, simple_tokenize)
89
  BM25Index.cache_term_weights(counting.posting_lists, total_docs, avgdl, counting.dfs, counting.dls, k1, b)