14 lines
289 B
Python
14 lines
289 B
Python
import os, sys
|
|
|
|
src_dir = os.path.join(
|
|
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
)
|
|
sys.path.append(src_dir)
|
|
|
|
from coagent.text_splitter import LCTextSplitter
|
|
|
|
filepath = ""
|
|
lc_textSplitter = LCTextSplitter(filepath)
|
|
docs = lc_textSplitter.file2text()
|
|
|
|
print(docs[0]) |