From daa65199e856b77639caa1a3c5015889569f25ff Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Sun, 29 Sep 2024 13:20:02 +0800 Subject: [PATCH] trival (#2650) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- deepdoc/parser/txt_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deepdoc/parser/txt_parser.py b/deepdoc/parser/txt_parser.py index 2d5dd9e8cf5..060aa0bcbc5 100644 --- a/deepdoc/parser/txt_parser.py +++ b/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