瀏覽代碼

Fix: delimiter issue. (#5720)

### What problem does this PR solve?

#5704

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.17.1
Kevin Hu 8 月之前
父節點
當前提交
8fb8374dfc
No account linked to committer's email address
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      deepdoc/parser/txt_parser.py

+ 1
- 0
deepdoc/parser/txt_parser.py 查看文件

@@ -31,6 +31,7 @@ class RAGFlowTxtParser:
raise TypeError("txt type should be str!")
cks = [""]
tk_nums = [0]
delimiter = delimiter.encode('utf-8').decode('unicode_escape').encode('latin1').decode('utf-8')

def add_chunk(t):
nonlocal cks, tk_nums, delimiter

Loading…
取消
儲存