public abstract class TextSplitter extends java.lang.Object implements DocumentSplitter
构造器和说明 |
---|
TextSplitter() |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<Document> |
split(java.util.List<Document> documents)
分割
|
protected java.util.List<Document> |
splitDocument(Document in,
java.util.List<Document> outs) |
protected abstract java.util.List<java.lang.String> |
splitText(java.lang.String text) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
split
public java.util.List<Document> split(java.util.List<Document> documents)
DocumentSplitter
split
在接口中 DocumentSplitter
documents
- 文档protected java.util.List<Document> splitDocument(Document in, java.util.List<Document> outs)
protected abstract java.util.List<java.lang.String> splitText(java.lang.String text)