Class SentenceSplitter
java.lang.Object
org.springframework.ai.transformer.splitter.TextSplitter
com.alibaba.cloud.ai.transformer.splitter.SentenceSplitter
- All Implemented Interfaces:
Function<List<org.springframework.ai.document.Document>,,List<org.springframework.ai.document.Document>> org.springframework.ai.document.DocumentTransformer
public class SentenceSplitter
extends org.springframework.ai.transformer.splitter.TextSplitter
Title Sentence splitter with nlp model.
Description Sentence splitter with nlp model.
Description Sentence splitter with nlp model.
- Since:
- 1.0.0-M2
- Author:
- yuanci.ytb
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.ai.transformer.splitter.TextSplitter
apply, isCopyContentFormatter, setCopyContentFormatter, split, splitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.document.DocumentTransformer
transform
-
Constructor Details
-
SentenceSplitter
public SentenceSplitter() -
SentenceSplitter
public SentenceSplitter(int chunkSize)
-
-
Method Details
-
splitText
- Specified by:
splitTextin classorg.springframework.ai.transformer.splitter.TextSplitter
-