[ allennlp.common.plugins ]
AllenNLP supports loading "plugins" dynamically. A plugin is just a Python package that
can be found and imported by AllenNLP. This is done by creating a file named
in the directory where the
allennlp command is run that lists the modules that should be loaded,
one per line.
DEFAULT_PLUGINS = ("allennlp_models", "allennlp_server")
def discover_file_plugins( plugins_filename: str = ".allennlp_plugins" ) -> Iterable[str]
Returns an iterable of the plugins found, declared within a file whose path is
def discover_plugins() -> Iterable[str]
Returns an iterable of the plugins found.
def import_plugins() -> None
Imports the plugins found with