compass.plugin.interface.BaseHeuristic#

class BaseHeuristic[source]#

Bases: ABC

Base class for a heuristic check

Methods

check(text)

Check for mention of a tech in text (or text chunk)

abstractmethod check(text)[source]#

Check for mention of a tech in text (or text chunk)

Parameters:

text (str) – Input text that may or may not mention the technology of interest.

Returns:

boolTrue if the text passes the heuristic check and False otherwise.