Class SpecialToken
Represents a special token in a Template.
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.PostProcessors.Templating
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public class SpecialToken : Piece, IEquatable<Piece>, IEquatable<SpecialToken>
Constructors
SpecialToken(string, int)
Initializes a new instance of the SpecialToken type.
Declaration
public SpecialToken(string value, int sequenceId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The value of the token. |
| int | sequenceId | The type id of the sequence. |
Properties
Value
The value of the token.
Declaration
public string Value { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Equals(SpecialToken)
Declaration
public bool Equals(SpecialToken other)
Parameters
| Type | Name | Description |
|---|---|---|
| SpecialToken | other |
Returns
| Type | Description |
|---|---|
| bool |
GetPieceHashCode()
Gets the hash code of this Piece.
Declaration
protected override int GetPieceHashCode()
Returns
| Type | Description |
|---|---|
| int | The hash code of this Piece. |
Overrides
PieceEquals(Piece)
Tell whether this Piece equals the other one.
Declaration
protected override bool PieceEquals(Piece other)
Parameters
| Type | Name | Description |
|---|---|---|
| Piece | other | The other Piece to compare. |
Returns
| Type | Description |
|---|---|
| bool | Whether this Piece equals the |
Overrides
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |