@staticmethod
def create(obj):
    if isinstance(obj, NaturalLanguageInterpreter):
        return obj
    if isinstance(obj, str):
        return RasaNLUInterpreter(model_directory=obj)
    else:
        return RegexInterpreter()
@staticmethod
def create(obj):
    if isinstance(obj, NaturalLanguageInterpreter):
        return obj
    if isinstance(obj, str):
        return RasaNLUInterpreter(model_directory=obj)
    else:
        return RegexInterpreter()