Dela via


BpeTrainer.Train(Model) Method

Definition

Perform the actual training and update the input model with the new vocabularies and merges data.

public override System.Collections.Generic.IReadOnlyList<Microsoft.ML.Tokenizers.AddedToken>? Train (Microsoft.ML.Tokenizers.Model model);
override this.Train : Microsoft.ML.Tokenizers.Model -> System.Collections.Generic.IReadOnlyList<Microsoft.ML.Tokenizers.AddedToken>
Public Overrides Function Train (model As Model) As IReadOnlyList(Of AddedToken)

Parameters

model
Model

The model to train. This has to be BpeModel to work with BpeTrainer.

Returns

The list of the added tokens.

Applies to