Sophia Koehler
commited on
Commit
·
53dd1eb
1
Parent(s):
e39c176
fix2
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ class BM25Index(InvertedIndex):
|
|
82 |
|
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)
|
|
|
82 |
|
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)
|