Update Bm25Plus.kt

This commit is contained in:
Denis-Cosmin Nutiu 2024-06-03 23:41:45 +03:00 committed by GitHub
parent ff69cf9034
commit ceb50c824b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}
}
}