Class Template
Represents a post processing template.
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.PostProcessors.Templating
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public class Template
Constructors
Template(IEnumerable<Piece>)
Declaration
public Template(IEnumerable<Piece> pieces)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Piece> | pieces | The elements of the template. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Template(string)
Declaration
public Template(string repr)
Parameters
| Type | Name | Description |
|---|---|---|
| string | repr | The string representation of the template. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
Properties
Pieces
The sequence of elements.
Declaration
public IEnumerable<Piece> Pieces { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<Piece> |
Methods
Parse(string)
Parses the repr into a sequence of Pieces.
Declaration
public static IEnumerable<Piece> Parse(string repr)
Parameters
| Type | Name | Description |
|---|---|---|
| string | repr |
Returns
| Type | Description |
|---|---|
| IEnumerable<Piece> | The sequence of parsed Pieces. |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |