espnet2.fileio.read_text.load_num_sequence_text
Less than 1 minute
espnet2.fileio.read_text.load_num_sequence_text
espnet2.fileio.read_text.load_num_sequence_text(path: Path | str, loader_type: str = 'csv_int') → Dict[str, List[float | int]]
Read a text file indicating sequences of number
Examples
key1 1 2 3 key2 34 5 6
>>> d = load_num_sequence_text('text')
>>> np.testing.assert_array_equal(d["key1"], np.array([1, 2, 3]))