瀏覽代碼

trival (#2650)

### What problem does this PR solve?

### Type of change

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

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

@@ -10,13 +10,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from deepdoc.parser.utils import get_txt
from deepdoc.parser.utils import get_text
from rag.nlp import num_tokens_from_string


class RAGFlowTxtParser:
def __call__(self, fnm, binary=None, chunk_token_num=128, delimiter="\n!?;。;!?"):
txt = get_txt(fnm, binary)
txt = get_text(fnm, binary)
return self.parser_txt(txt, chunk_token_num, delimiter)

@classmethod

Loading…
取消
儲存