DatabaseImportData#
- class montreal_forced_aligner.data.DatabaseImportData(speaker_objects=<dataclassy.dataclass.Factory object>, file_objects=<dataclassy.dataclass.Factory object>, text_file_objects=<dataclassy.dataclass.Factory object>, sound_file_objects=<dataclassy.dataclass.Factory object>, speaker_ordering_objects=<dataclassy.dataclass.Factory object>, utterance_objects=<dataclassy.dataclass.Factory object>, phone_interval_objects=<dataclassy.dataclass.Factory object>, word_interval_objects=<dataclassy.dataclass.Factory object>)[source]#
Bases:
objectClass for storing information on importing data into the database
- Parameters:
speaker_objects (list[dict[str, Any]]) – List of dictionaries with
Speakerpropertiesfile_objects (list[dict[str, Any]]) – List of dictionaries with
Filepropertiestext_file_objects (list[dict[str, Any]]) – List of dictionaries with
TextFilepropertiessound_file_objects (list[dict[str, Any]]) – List of dictionaries with
SoundFilepropertiesspeaker_ordering_objects (list[dict[str, Any]]) – List of dictionaries with
SpeakerOrderingpropertiesutterance_objects (list[dict[str, Any]]) – List of dictionaries with
Utterancepropertiesphone_interval_objects (list[dict[str, Any]]) – List of dictionaries with
PhoneIntervalproperties
- add_objects(other_import)[source]#
Combine objects for two importers
- Parameters:
other_import (
DatabaseImportData) – Other object with objects to import