text_spliter = CharacterTextSplitter(
separator=‘,’,
chunk_size=10,
chunk_overlap=2
)
result = text_spliter.split_text(“今天天气好晴朗,处处好风光啊好风光蝴蝶儿忙啊,蜜蜂也忙,小鸟儿忙着,白云也忙”)
print(result)
“”"
运行结果 => [‘今天天气好晴朗’, ‘,处处好风光啊好风光蝴蝶儿忙啊’, ‘,蜜蜂也忙’, ‘,小鸟儿忙着’, ‘,白云也忙’]
当 separator=‘,’ 一旦添加之后 , 逗号之后,chunk_overlap的值好像就失效了,失去作用了,有没有大佬遇到过这个问题
“”"