BertOnnxOptions.NormalizeEmbeddings Property
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.
Gets or sets whether the resulting embedding vectors should be explicitly normalized. Defaults to false.
public bool NormalizeEmbeddings { get; set; }
member this.NormalizeEmbeddings : bool with get, set
Public Property NormalizeEmbeddings As Boolean
Property Value
Remarks
Normalized embeddings may be compared more efficiently, such as by using a dot product rather than cosine similarity.