Class PrependNormalizer
Adds a prefix to the input string.
Implements
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.Normalizers
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public class PrependNormalizer : INormalizer
Constructors
PrependNormalizer(string)
Initializes a new instance of the PrependNormalizer type.
Declaration
public PrependNormalizer(string prefix)
Parameters
| Type | Name | Description |
|---|---|---|
| string | prefix | The prefix to add to the input string when passed to Normalize(SubString). |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The |
Methods
Normalize(SubString)
Applies transformations to the input string before pre-tokenization.
Declaration
public SubString Normalize(SubString input)
Parameters
| Type | Name | Description |
|---|---|---|
| SubString | input | The string to transform. |
Returns
| Type | Description |
|---|---|
| SubString | The resulting string. |