mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-08 10:55:18 +03:00
1.8 KiB
1.8 KiB
In [24]:
from langchain.document_loaders import SRTLoaderIn [25]:
loader = SRTLoader("example_data/Star_Wars_The_Clone_Wars_S06E07_Crisis_at_the_Heart.srt")In [26]:
docs = loader.load()In [27]:
docs[0].page_content[:100]Out [27]:
'<i>Corruption discovered\nat the core of the Banking Clan!</i> <i>Reunited, Rush Clovis\nand Senator A'
In [ ]: