sentiment.FilteredEngine

Wraps an InferenceEngine with a ScoreSpec: short-circuit

Usage

Source

sentiment.FilteredEngine()

stages pre-empt inference, post-process stages adjust the model score. The deterministic stages run in Rust when available, Python at parity otherwise.

Parameter Attributes

inner: InferenceEngine
spec: ScoreSpec