Share via


Trainer.Train(Model) Method

Definition

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

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

Parameters

model
Model

The model to train.

Returns

Special tokens to be added directly to the tokenizer along with the model.

Applies to