Retriever#

class scikitplot.corpus.Retriever[source]#

Base class for an independent evidence path.

Notes

Subclasses implement retrieve and declare leg. Every leg returns a LegResult rather than a bare list, so a leg that could not run says so instead of returning an empty list indistinguishable from a genuine zero-hit answer.

leg: LegKind = 'lexical'[source]#

Which evidence path this retriever represents.

retrieve(query, config, **kwargs)[source]#

Run this leg.

Parameters:
Return type:

LegResult