From ceb50c824b16bc143a4ae47a189fda78e64ac011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nu=C8=9Biu?= Date: Mon, 3 Jun 2024 23:41:45 +0300 Subject: [PATCH] Update Bm25Plus.kt --- src/main/kotlin/ranking/bm25/Bm25Plus.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ranking/bm25/Bm25Plus.kt b/src/main/kotlin/ranking/bm25/Bm25Plus.kt index e422e61..20118e3 100644 --- a/src/main/kotlin/ranking/bm25/Bm25Plus.kt +++ b/src/main/kotlin/ranking/bm25/Bm25Plus.kt @@ -154,7 +154,7 @@ class Bm25Plus { /** * Computes the inverse document frequency for a given term. * - * THe IDF is defined as the total number of documents (N) divided by the documents that contain the term (dft). + * The IDF is defined as the total number of documents (N) divided by the documents that contain the term (dft). * In the BM25+ version the IDF is the (N+1)/(dft) */ private fun computeInverseDocumentFrequency(term: String): Double { @@ -184,4 +184,4 @@ class Bm25Plus { ) return score } -} \ No newline at end of file +}