A class that extends the TextLoader class. It represents a document
loader that loads documents from SRT (SubRip) subtitle files. It has a
constructor that takes a filePathOrBlob parameter representing the
path to the SRT file or a Blob object. The parse() method is
implemented to parse the SRT file and extract the text content of each
subtitle.
class SRTLoaderTextLoaderconst loader = new SRTLoader("path/to/file.srt");
const docs = await loader.load();
console.log({ docs });