espnet2.fileio.npy_scp.NpyScpReader
Less than 1 minute
espnet2.fileio.npy_scp.NpyScpReader
class espnet2.fileio.npy_scp.NpyScpReader(fname: Path | str)
Bases: Mapping
Reader class for a scp file of numpy file.
Examples
key1 /some/path/a.npy key2 /some/path/b.npy key3 /some/path/c.npy key4 /some/path/d.npy …
>>> reader = NpyScpReader('npy.scp')
>>> array = reader['key1']
get_path(key)
keys() → a set-like object providing a view on D's keys