BpeTrainer.Train(Model) Method
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.
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.