Class TextPartition
Represents a text partition (or chunk of text) of a Section.
This class encapsulates the text details such as tokens, embeddings, and the mode used for splitting.
public sealed class TextPartition : Partition
- Inheritance
-
TextPartition
- Inherited Members
Remarks
In LMKit, the hierarchy of data structures is organized as follows: a DataSource contains a collection of Section objects, each of which can hold a collection of TextPartition instances.
Properties
- Payload
Gets the original text content of this partition. This property provides access to the text segment that this partition represents.
- SplitMode
Gets the method of text splitting, defined by the SplitMode enumeration, that was used to create this partition.
- Text
Gets the original text content of this partition. This property provides access to the text segment that this partition represents.