SearchResult#

class scikitplot.corpus.SearchResult(doc, score, match_mode)[source]#

A single search result.

Parameters:
docCorpusDocument

The matched document.

scorefloat

Relevance score (higher is better). Scale depends on match mode:

  • STRICT: 1.0 if match, 0.0 otherwise

  • KEYWORD: Jaccard similarity [0, 1] or BM25 score

  • SEMANTIC: cosine similarity [-1, 1]

  • HYBRID: reciprocal rank fusion score

match_modestr

The mode that produced this result.

Parameters:
doc: Any[source]#
match_mode: str[source]#
score: float[source]#