def _load_model(model_path: str) -> spm.SentencePieceProcessor:
    '\n    Loads pre_trained keras model and vocab file\n\n    Args:\n        model_path (str): Path to the spm model file\n    Returns:\n        spm model class instance\n    '
    spm_model = spm.SentencePieceProcessor()
    spm_model.Load(model_file=model_path)
    return spm_model
Loads pre_trained keras model and vocab file

Args:
    model_path (str): Path to the spm model file
Returns:
    spm model class instance
def _load_model(model_path: str) -> spm.SentencePieceProcessor:
    '\n    Loads pre_trained keras model and vocab file\n\n    Args:\n        model_path (str): Path to the spm model file\n    Returns:\n        spm model class instance\n    '
    spm_model = spm.SentencePieceProcessor()
    spm_model.Load(model_file=model_path)
    return spm_model