vkit.engine.char_sampler

 1# Copyright 2022 vkit-x Administrator. All Rights Reserved.
 2#
 3# This project (vkit-x/vkit) is dual-licensed under commercial and SSPL licenses.
 4#
 5# The commercial license gives you the full rights to create and distribute software
 6# on your own terms without any SSPL license obligations. For more information,
 7# please see the "LICENSE_COMMERCIAL.txt" file.
 8#
 9# This project is also available under Server Side Public License (SSPL).
10# The SSPL licensing is ideal for use cases such as open source projects with
11# SSPL distribution, student/academic purposes, hobby projects, internal research
12# projects without external distribution, or other projects where all SSPL
13# obligations can be met. For more information, please see the "LICENSE_SSPL.txt" file.
14from vkit.engine.interface import EngineExecutorAggregatorFactory
15
16from .type import CharSamplerEngineRunConfig
17from .func_collate import char_sampler_func_collate
18
19from .corpus import (
20    char_sampler_corpus_engine_executor_factory,
21    CharSamplerCorpusEngineInitConfig,
22    CharSamplerCorpusEngineInitResource,
23    CharSamplerCorpusEngine,
24)
25from .datetime import (
26    char_sampler_datetime_engine_executor_factory,
27    CharSamplerDatetimeEngineInitConfig,
28    CharSamplerDatetimeEngineInitResource,
29    CharSamplerDatetimeEngine,
30)
31from .faker import (
32    char_sampler_faker_engine_executor_factory,
33    CharSamplerFakerEngineInitConfig,
34    CharSamplerFakerEngineInitResource,
35    CharSamplerFakerEngine,
36)
37from .lexicon import (
38    char_sampler_lexicon_engine_executor_factory,
39    CharSamplerLexiconEngineInitConfig,
40    CharSamplerLexiconEngineInitResource,
41    CharSamplerLexiconEngine,
42)
43
44char_sampler_engine_executor_aggregator_factory = EngineExecutorAggregatorFactory(
45    [
46        char_sampler_corpus_engine_executor_factory,
47        char_sampler_datetime_engine_executor_factory,
48        char_sampler_faker_engine_executor_factory,
49        char_sampler_lexicon_engine_executor_factory,
50    ],
51    func_collate=char_sampler_func_collate,
52)