Class HfTruncationAttribute
Identifies the parser for an implementation of ITruncator
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.Parsers.HuggingFace
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class HfTruncationAttribute : HfAttribute
Constructors
HfTruncationAttribute(string)
Initializes a new instance of the HfTruncationAttribute type.
Declaration
public HfTruncationAttribute(string strategy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | strategy | The type name of the decoder. It corresponds to the name in the Hugging Face JSON configuration. |
Fields
Strategy
The strategy of padding.
Declaration
public readonly string Strategy
Field Value
| Type | Description |
|---|---|
| string |