2 writes to Piece
Microsoft.ML.Tokenizers (2)
SentencepieceModel.cs (2)
4560
Piece
= other.Piece;
4616
Piece
= input.ReadString();
10 references to Piece
Microsoft.ML.Tokenizers (10)
Model\SentencePieceBpeModel.cs (2)
31
_vocab.Add(new StringSpanOrdinalKey(piece.
Piece
), (i, piece.Score, (byte)piece.Type));
32
_vocabReverse.Add(i, piece.
Piece
);
Model\SentencePieceUnigramModel.cs (2)
41
string piece = modelProto.Pieces[i].
Piece
;
55
_vocabReverse[i] = (modelProto.Pieces[i].
Piece
, modelProto.Pieces[i].Score, ModelProto.Types.SentencePiece.Types.Type.Unknown);
SentencepieceModel.cs (6)
4448
if (
Piece
!= other.
Piece
) return false;
4461
if (HasPiece) hash ^=
Piece
.GetHashCode();
4512
output.WriteString(
Piece
);
4536
size += 1 + pb::CodedOutputStream.ComputeStringSize(
Piece
);
4560
Piece = other.
Piece
;