Repository navigation
v0.0.14
PATCH: new exports before 1.0. The new entry @mark1russell7/text/search has a ranked search with TF-IDF. The root entry does not change.
searchWords(text, options)gives the search keys of the words of a text. The options are stop words, a test of a word and a stem.inverseDocumentFrequency(documents, form)gives the IDF of each term, in the formplain(the default) orsmooth.termVector(words, idf)andcosineSimilarity(a, b)give the TF-IDF vector of a text and the similarity of two vectors.rankDocuments(corpus, query, form)ranks the documents of a corpus for a query.- Property tests on seeded corpora: the order of the documents does not change a weight or a score. A term in each document has the plain weight 0.