diff --git a/kraken/lib/codec.py b/kraken/lib/codec.py index c6fb95958..32990e278 100644 --- a/kraken/lib/codec.py +++ b/kraken/lib/codec.py @@ -304,6 +304,8 @@ def __init__(self, character_coverage=1.0) self.spp = spm.SentencePieceProcessor(model_proto=_model.getvalue()) + self.strict = strict + def __len__(self) -> int: """ Total number of input labels the codec can decode.