Class Sequence
Represents a sequence of tokens in a Template.
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization.PostProcessors.Templating
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public class Sequence : Piece, IEquatable<Piece>, IEquatable<Sequence>
Constructors
Sequence(SequenceIdentifier, int)
Initializes a new instance of the Sequence type.
Declaration
public Sequence(SequenceIdentifier identifier, int sequenceId)
Parameters
| Type | Name | Description |
|---|---|---|
| SequenceIdentifier | identifier | Identifies the sequence: |
| int | sequenceId | The type id of the sequence. |
Properties
Identifier
Declaration
public SequenceIdentifier Identifier { get; }
Property Value
| Type | Description |
|---|---|
| SequenceIdentifier |
Methods
Equals(Sequence)
Declaration
public bool Equals(Sequence other)
Parameters
| Type | Name | Description |
|---|---|---|
| Sequence | 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 |