paddlespeech.t2s.datasets.data_table module

class paddlespeech.t2s.datasets.data_table.DataTable(data: List[Dict[str, Any]], fields: Optional[List[str]] = None, converters: Optional[Dict[str, Callable]] = None, use_cache: bool = False)[source]

Bases: Dataset

Dataset to load and convert data for general purpose. Args:

data (List[Dict[str, Any]]): Metadata, a list of meta datum, each of which is composed of several fields fields (List[str], optional): Fields to use, if not specified, all the fields in the data are used, by default None converters (Dict[str, Callable], optional): Converters used to process each field, by default None use_cache (bool, optional): Whether to use cache, by default False

Raises:
ValueError:

If there is some field that does not exist in data.

ValueError:

If there is some field in converters that does not exist in fields.

class paddlespeech.t2s.datasets.data_table.StarGANv2VCDataTable(data: List[Dict[str, Any]])[source]

Bases: DataTable