2023-11-07 19:44:47 +08:00
|
|
|
import os, sys
|
|
|
|
|
|
|
|
src_dir = os.path.join(
|
|
|
|
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
)
|
|
|
|
sys.path.append(src_dir)
|
|
|
|
|
2024-01-26 14:03:25 +08:00
|
|
|
from coagent.text_splitter import LCTextSplitter
|
2023-11-07 19:44:47 +08:00
|
|
|
|
|
|
|
filepath = ""
|
|
|
|
lc_textSplitter = LCTextSplitter(filepath)
|
|
|
|
docs = lc_textSplitter.file2text()
|
|
|
|
|
|
|
|
print(docs[0])
|