nw9663644-eng commented on code in PR #359:
URL: https://github.com/apache/hugegraph-ai/pull/359#discussion_r3363175176


##########
hugegraph-llm/src/hugegraph_llm/operators/document_op/chunk_split.py:
##########
@@ -57,7 +62,7 @@ def _get_text_splitter(self, split_type: str):
             ).split_text
         if split_type == SPLIT_TYPE_SENTENCE:
             return RecursiveCharacterTextSplitter(chunk_size=50, 
chunk_overlap=0, separators=self.separators).split_text

Review Comment:
   Thanks for pointing this out. I changed the `sentence` mode to use 
punctuation-based sentence-boundary splitting instead of the previous 
character-sized splitter, and added a test to verify punctuation-delimited 
input is split into separate sentences.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to