BpeDecoder 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
允許解碼原始 BPE,方法是聯結所有權杖,然後取代用來以空格識別字尾的尾碼
public sealed class BpeDecoder : Microsoft.ML.Tokenizers.TokenizerDecoder
type BpeDecoder = class
inherit TokenizerDecoder
Public NotInheritable Class BpeDecoder
Inherits TokenizerDecoder
- 繼承
建構函式
| BpeDecoder() |
建構新的 Bpe 解碼器物件。 |
| BpeDecoder(String) |
建構新的 Bpe 解碼器物件。 |
方法
| Decode(IEnumerable<String>) |
藉由聯結所有權杖,然後取代用來以空格識別字尾的後置詞,以解碼原始 BPE。 |