NumpyDumpDataset

Provides NumpyDumpDataset.

class NumpyDumpDataset.NumpyDumpDataset(prefix, postfix='.txt.gz', start_seq=0, end_seq=None, num_inputs=None, num_outputs=None, **kwargs)[source]

For tools/dump-dataset.py --type=numpy.

file_format_data = '%i.data'[source]
file_format_targets = '%i.targets'[source]
init_seq_order(self, epoch=None, seq_list=None)[source]
Parameters:
  • epoch (int|None) –
  • seq_list (list[str]|None) –
Return type:

bool

get_input_data(self, seq_idx)[source]
Parameters:seq_idx (int) –
Return type:numpy.ndarray
get_targets(self, target, seq_idx)[source]
Parameters:
  • target (str) –
  • seq_idx (int) –
Return type:

numpy.ndarray

get_ctc_targets(self, seq_idx)[source]

Not implemented.

Parameters:seq_idx (int) –
get_seq_length(self, seq_idx)[source]
Parameters:seq_idx (int) –
Return type:Util.NumbersDict
num_seqs[source]
Return type:int
len_info(self)[source]
Return type:str