def load_model(name, **overrides):
data_path = get_data_path()<EOL>if not data_path or not data_path.exists():<EOL><INDENT>raise IOError(Errors.E049.format(path=path2str(data_path)))<EOL><DEDENT>if isinstance(name, basestring_):  <EOL><INDENT>if name in set([d.name for d in data_path.iterdir()]):<EOL><INDENT>return load_model_from_link(name, **overrides)<EOL><DEDENT>if is_package(name):  <EOL><INDENT>return load_model_from_package(name, **overrides)<EOL><DEDENT>if Path(name).exists():  <EOL><INDENT>return load_model_from_path(Path(name), **overrides)<EOL><DEDENT><DEDENT>elif hasattr(name, "<STR_LIT>"):  <EOL><INDENT>return load_model_from_path(name, **overrides)<EOL><DEDENT>raise IOError(Errors.E050.format(name=name))<EOL>
Load a model from a shortcut link, package or data path.

    name (unicode): Package name, shortcut link or model path.
    **overrides: Specific overrides, like pipeline components to disable.
    RETURNS (Language): `Language` class with the loaded model.