Class: TopSecret::NullModel
- Inherits:
-
Object
- Object
- TopSecret::NullModel
- Defined in:
- lib/top_secret/null_model.rb
Overview
A null object implementation that provides a no-op interface compatible with Mitie::NER. Used when NER filtering is disabled (model_path is nil) to eliminate conditional checks throughout the codebase.
Defined Under Namespace
Classes: NullDoc
Instance Method Summary collapse
-
#doc(input) ⇒ NullDoc
Creates a null document that returns empty entities.
Instance Method Details
#doc(input) ⇒ NullDoc
Creates a null document that returns empty entities.
28 29 30 |
# File 'lib/top_secret/null_model.rb', line 28 def doc(input) NullDoc.new end |