a single document to calculate the score for
phrase to search tf and idf for each word
Optional
options: { saturationWeight controls the impact of term frequency saturation. It typically ranges from 1.2 to 2.0, with 1.5 being a common default value. As saturationWeight increases: The impact of term frequency increases (i.e., multiple occurrences of a term in a document become more significant).
normalizeLengthcontrols the document length normalization. It ranges from 0 to 1, with 0.75 being a common default value. When normalizeLength=1: Full length normalization is applied. Longer documents are penalized more heavily.
Estimated average word count of all documents
Total number of Wikipedia pages used to calculate IDF
score for term specificity
Calculate term specificity for a single doc with BM25 formula by using Wikipedia term frequencies as the baseline IDF.