SentenceChunkingConfiguration Configuration
SentenceChunkingConfiguration Configuration documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| MaxChunkSize | int32 | Maximum size of a chunk | |
| MinChunkSize | int32 | Minimum size before creating a new chunk | |
| EnableLanguageDetection | Pointer to NullableBool | Whether to detect language for better segmentation | [optional] |
| LengthMeasurement | LengthMeasurement |
Methods
NewSentenceChunkingConfiguration
func NewSentenceChunkingConfiguration(maxChunkSize int32, minChunkSize int32, lengthMeasurement LengthMeasurement, ) *SentenceChunkingConfiguration
NewSentenceChunkingConfiguration instantiates a new SentenceChunkingConfiguration object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewSentenceChunkingConfigurationWithDefaults
func NewSentenceChunkingConfigurationWithDefaults() *SentenceChunkingConfiguration
NewSentenceChunkingConfigurationWithDefaults instantiates a new SentenceChunkingConfiguration object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetMaxChunkSize
func (o *SentenceChunkingConfiguration) GetMaxChunkSize() int32
GetMaxChunkSize returns the MaxChunkSize field if non-nil, zero value otherwise.
GetMaxChunkSizeOk
func (o *SentenceChunkingConfiguration) GetMaxChunkSizeOk() (*int32, bool)
GetMaxChunkSizeOk returns a tuple with the MaxChunkSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMaxChunkSize
func (o *SentenceChunkingConfiguration) SetMaxChunkSize(v int32)
SetMaxChunkSize sets MaxChunkSize field to given value.
GetMinChunkSize
func (o *SentenceChunkingConfiguration) GetMinChunkSize() int32
GetMinChunkSize returns the MinChunkSize field if non-nil, zero value otherwise.
GetMinChunkSizeOk
func (o *SentenceChunkingConfiguration) GetMinChunkSizeOk() (*int32, bool)
GetMinChunkSizeOk returns a tuple with the MinChunkSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetMinChunkSize
func (o *SentenceChunkingConfiguration) SetMinChunkSize(v int32)
SetMinChunkSize sets MinChunkSize field to given value.
GetEnableLanguageDetection
func (o *SentenceChunkingConfiguration) GetEnableLanguageDetection() bool
GetEnableLanguageDetection returns the EnableLanguageDetection field if non-nil, zero value otherwise.
GetEnableLanguageDetectionOk
func (o *SentenceChunkingConfiguration) GetEnableLanguageDetectionOk() (*bool, bool)
GetEnableLanguageDetectionOk returns a tuple with the EnableLanguageDetection field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetEnableLanguageDetection
func (o *SentenceChunkingConfiguration) SetEnableLanguageDetection(v bool)
SetEnableLanguageDetection sets EnableLanguageDetection field to given value.
HasEnableLanguageDetection
func (o *SentenceChunkingConfiguration) HasEnableLanguageDetection() bool
HasEnableLanguageDetection returns a boolean if a field has been set.
SetEnableLanguageDetectionNil
func (o *SentenceChunkingConfiguration) SetEnableLanguageDetectionNil(b bool)
SetEnableLanguageDetectionNil sets the value for EnableLanguageDetection to be an explicit nil
UnsetEnableLanguageDetection
func (o *SentenceChunkingConfiguration) UnsetEnableLanguageDetection()
UnsetEnableLanguageDetection ensures that no value is present for EnableLanguageDetection, not even an explicit nil
GetLengthMeasurement
func (o *SentenceChunkingConfiguration) GetLengthMeasurement() LengthMeasurement
GetLengthMeasurement returns the LengthMeasurement field if non-nil, zero value otherwise.
GetLengthMeasurementOk
func (o *SentenceChunkingConfiguration) GetLengthMeasurementOk() (*LengthMeasurement, bool)
GetLengthMeasurementOk returns a tuple with the LengthMeasurement field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetLengthMeasurement
func (o *SentenceChunkingConfiguration) SetLengthMeasurement(v LengthMeasurement)
SetLengthMeasurement sets LengthMeasurement field to given value.