語言

BpeTrainer.Train(Model) 方法

定義

執行實際訓練,並用新詞彙更新輸入模型,並合併資料。

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)

參數

model
Model

訓練的模型。 這必須是 BpeModel 才能與 BpeTrainer 合作。

傳回

新增代幣的清單。

適用於