Unverified Commit 1bc1479c authored by Alexander Kurakin's avatar Alexander Kurakin Committed by GitHub
Browse files

LIBRISPEECH: fix `.get_metadata` type annotation (#3757)

parent 87aeb554
...@@ -118,7 +118,7 @@ class LIBRISPEECH(Dataset): ...@@ -118,7 +118,7 @@ class LIBRISPEECH(Dataset):
self._walker = sorted(str(p.stem) for p in Path(self._path).glob("*/*/*" + self._ext_audio)) self._walker = sorted(str(p.stem) for p in Path(self._path).glob("*/*/*" + self._ext_audio))
def get_metadata(self, n: int) -> Tuple[Tensor, int, str, int, int, int]: def get_metadata(self, n: int) -> Tuple[str, int, str, int, int, int]:
"""Get metadata for the n-th sample from the dataset. Returns filepath instead of waveform, """Get metadata for the n-th sample from the dataset. Returns filepath instead of waveform,
but otherwise returns the same fields as :py:func:`__getitem__`. but otherwise returns the same fields as :py:func:`__getitem__`.
......
...@@ -129,7 +129,7 @@ class LibriSpeechBiasing(Dataset): ...@@ -129,7 +129,7 @@ class LibriSpeechBiasing(Dataset):
self._walker = sorted(str(p.stem) for p in Path(self._path).glob("*/*/*" + self._ext_audio)) self._walker = sorted(str(p.stem) for p in Path(self._path).glob("*/*/*" + self._ext_audio))
self.blist = blist self.blist = blist
def get_metadata(self, n: int) -> Tuple[Tensor, int, str, int, int, int]: def get_metadata(self, n: int) -> Tuple[str, int, str, int, int, int]:
"""Get metadata for the n-th sample from the dataset. Returns filepath instead of waveform, """Get metadata for the n-th sample from the dataset. Returns filepath instead of waveform,
but otherwise returns the same fields as :py:func:`__getitem__`. but otherwise returns the same fields as :py:func:`__getitem__`.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment