BertOnnxOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an options bag used to configure BertOnnxTextEmbeddingGenerationService.
public sealed class BertOnnxOptions
type BertOnnxOptions = class
Public NotInheritable Class BertOnnxOptions
- Inheritance
-
BertOnnxOptions
Constructors
BertOnnxOptions() |
Properties
CaseSensitive |
Gets or sets whether the vocabulary employed by the model is case-sensitive. |
ClsToken |
Gets or sets the cls token. Defaults to "[CLS]". |
MaximumTokens |
Gets or sets the maximum number of tokens to encode. Defaults to 512. |
NormalizeEmbeddings |
Gets or sets whether the resulting embedding vectors should be explicitly normalized. Defaults to false. |
PadToken |
Gets or sets the pad token. Defaults to "[PAD]". |
PoolingMode |
Gets or sets the pooling mode to use when generating the fixed-length embedding result. Defaults to "mean". |
SepToken |
Gets or sets the sep token. Defaults to "[SEP]". |
UnicodeNormalization |
Gets or sets the type of Unicode normalization to perform on input text. Defaults to FormD. |
UnknownToken |
Gets or sets the unknown token. Defaults to "[UNK]". |