espnet3.systems.esp2_lid.system.ESP2LIDSystem
espnet3.systems.esp2_lid.system.ESP2LIDSystem
class espnet3.systems.esp2_lid.system.ESP2LIDSystem(training_config: DictConfig | None = None, inference_config: DictConfig | None = None, metrics_config: DictConfig | None = None, publication_config: DictConfig | None = None, demo_config: DictConfig | None = None)
Bases: BaseSystem
Language identification system.
The stages are the base system’s, without the demo stages: there is no LID demo yet. collect_stats first writes the speech shapes and the language mappings the category samplers read.
Examples
>>> [s.name for s in ESP2LIDSystem.stages]
['create_dataset', 'collect_stats', 'train', 'infer', 'measure', 'pack_model', 'upload_model']Initialize the system with optional stage configs.
- Parameters:
- training_config – Training configuration for data preparation, statistics collection, and model training.
- inference_config – Inference configuration used by the
inferstage. - metrics_config – Measurement configuration used by the
measurestage. - publication_config – Publication configuration for
pack_modelandupload_modelstages. - demo_config – Demo configuration for the
demostage.
collect_stats(*args, **kwargs)
Collect LID metadata and optionally feature statistics.
Writes speech_shape, lang2utt, category2utt, dataset2utt and utt2dataset under stats_dir/{train,valid} (see collect_speech_shapes()). When model.model_conf.extract_feats_in_collect_stats is true or unset, it then collects feature statistics as the base system does.
stages : ClassVar[tuple[StageSpec, ...]] = (StageSpec(name='create_dataset', config='training', log_dir='data_dir'), StageSpec(name='collect_stats', config='training', log_dir='stats_dir'), StageSpec(name='train', config='training', log_dir='exp_dir'), StageSpec(name='infer', config='inference', log_dir='inference_dir'), StageSpec(name='measure', config='metrics', log_dir='inference_dir'), StageSpec(name='pack_model', config=('training', 'publication'), log_dir=None), StageSpec(name='upload_model', config='publication', log_dir=None))
