Update Bm25Plus.kt
This commit is contained in:
parent
ff69cf9034
commit
ceb50c824b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue