Skip to content

v0.0.15

Choose a tag to compare

@github-actions github-actions released this 18 Nov 06:51
712442a

PATCH: a new export before 1.0. The entry @mark1russell7/text/search has rankerOf.

  • rankerOf(corpus, form) computes the IDF and the vector of each document one time. It gives a function (query) => DocumentScore[].
  • For each query, the ranker gives the same scores as rankDocuments(corpus, query, form). A property test on 500 seeded corpora holds this.
  • rankDocuments uses rankerOf, so the two functions share one path. Its results do not change.