Skip to content

Commit

Permalink
trival (#2650)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored Sep 29, 2024
1 parent fc867cb commit daa6519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepdoc/parser/txt_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit daa6519

Please sign in to comment.