Modifier and Type | Method and Description |
---|---|
default List<E> |
TextClassifier.classify(TextSegment textSegment)
Classify the given
TextSegment . |
Modifier and Type | Method and Description |
---|---|
TextSegment |
Document.toTextSegment() |
Modifier and Type | Method and Description |
---|---|
List<TextSegment> |
DocumentSplitter.split(Document document)
Splits a single Document into a list of TextSegment objects.
|
default List<TextSegment> |
DocumentSplitter.splitAll(List<Document> documents)
Splits a list of Documents into a list of TextSegment objects.
|
Modifier and Type | Method and Description |
---|---|
static TextSegment |
TextSegment.from(String text) |
static TextSegment |
TextSegment.from(String text,
Metadata metadata) |
static TextSegment |
TextSegment.textSegment(String text) |
static TextSegment |
TextSegment.textSegment(String text,
Metadata metadata) |
TextSegment |
TextSegmentTransformer.transform(TextSegment segment)
Transforms a provided segment.
|
Modifier and Type | Method and Description |
---|---|
default List<TextSegment> |
TextSegmentTransformer.transformAll(List<TextSegment> segments)
Transforms all the provided segments.
|
Modifier and Type | Method and Description |
---|---|
TextSegment |
TextSegmentTransformer.transform(TextSegment segment)
Transforms a provided segment.
|
Modifier and Type | Method and Description |
---|---|
default List<TextSegment> |
TextSegmentTransformer.transformAll(List<TextSegment> segments)
Transforms all the provided segments.
|
Modifier and Type | Method and Description |
---|---|
default int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment) |
Modifier and Type | Method and Description |
---|---|
default Response<Embedding> |
EmbeddingModel.embed(TextSegment textSegment) |
default int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment) |
Modifier and Type | Method and Description |
---|---|
Response<List<Embedding>> |
EmbeddingModel.embedAll(List<TextSegment> textSegments) |
default int |
TokenCountEstimator.estimateTokenCount(List<TextSegment> textSegments) |
Modifier and Type | Method and Description |
---|---|
default int |
TokenCountEstimator.estimateTokenCount(TextSegment textSegment) |
Modifier and Type | Method and Description |
---|---|
Response<Moderation> |
ModerationModel.moderate(TextSegment textSegment) |
Copyright © 2023. All rights reserved.