語言

Trainer 類別

定義

A Trainer 有責任訓練模型。 我們會用台詞/句子餵給它,然後它就能訓練給定 Model的 。

public abstract class Trainer
type Trainer = class
Public MustInherit Class Trainer
繼承
Trainer
衍生

建構函式

名稱 Description
Trainer()

A Trainer 有責任訓練模型。 我們會用台詞/句子餵給它,然後它就能訓練給定 Model的 。

屬性

名稱 Description
Progress

設定何時需要在培訓期間報告進度。

方法

名稱 Description
Feed(IEnumerable<String>, Func<String,IEnumerable<String>>)

處理輸入序列並將結果輸入模型。

Train(Model)

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

適用於