vizseq/_data/data_sources.py [158:166]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return result

    def get_len(self, idx: int, finer=False) -> int:
        if not 0 <= idx <= len(self):
            raise ValueError(f'Invalid index {idx}')
        if self.is_text:
            return len(self.data[idx]) if finer else len(self.data[idx].split())
        elif self.is_audio:
            if any(self.data[idx].endswith(e) for e in SOUNDFILE_FILE_EXTS):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



vizseq/_data/data_sources.py [251:259]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            return result

    def get_len(self, idx: int, finer=False) -> int:
        if not 0 <= idx <= len(self):
            raise ValueError(f'Invalid index {idx}')
        if self.is_text:
            return len(self.data[idx]) if finer else len(self.data[idx].split())
        elif self.is_audio:
            if any(self.data[idx].endswith(e) for e in SOUNDFILE_FILE_EXTS):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



