topik package¶
Subpackages¶
- topik.fileio package
- Subpackages
- Submodules
- topik.fileio.base_output module
- topik.fileio.in_document_folder module
- topik.fileio.in_elastic module
- topik.fileio.in_json module
- topik.fileio.out_elastic module
- topik.fileio.out_memory module
- topik.fileio.project module
- topik.fileio.reader module
- Module contents
- topik.models package
- topik.simple_run package
- topik.tokenizers package
- topik.transformers package
- topik.vectorizers package
- topik.visualizers package
Submodules¶
topik.singleton_registry module¶
Topik uses a modular design at each step in the topic modeling process, to support future extension. One of the core concepts here is that we provide registries for each step that can be extended through registration using a decorator.
The general pattern for using this registry is to subclass BaseRegistry, and then create a new decorator that uses that registry:
register = functools.partial(_base_register_decorator, RegistrySubclass())
we keep the name as simply register across all files for simplicity, but the register decorator in each folder is using a different registry specific to that folder. See the _registry.py module in each folder.