box_embeddings.common.registrable
¶
Ability to register classes. If AllenNLP is not available, then currently registering won’t work.
Module Contents¶
- logger¶
- T¶
- class DummyRegistrable¶
Bases:
object
Dummy class which implements ‘registrable’ method which does nothing.
- classmethod register(cls: Type[T], name: str, constructor: str = None, exist_ok: bool = False) Callable[[Type[T]], Type[T]] ¶
Transparent method
- Parameters
name – TODO
constructor – TODO
exist_ok – TODO
- Returns
a wrapped callable
- Registrable¶