30 references to Type
Microsoft.ML.Tokenizers (30)
Model\SentencePieceBpeModel.cs (10)
34
if (piece.Type == ModelProto.Types.SentencePiece.Types.
Type
.Byte)
180
if (type != (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused)
268
if (id.Type != (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused ||
458
if (type != (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused)
573
if (id.Type != (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused ||
726
if (type != (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused)
832
if (id.Type != (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused ||
1002
if (type != (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused)
1108
if (id.Type != (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused ||
1208
if (leftId.Type == (byte)ModelProto.Types.SentencePiece.Types.
Type
.Unused)
Model\SentencePieceUnigramModel.cs (14)
21
private readonly (string Piece, float Score, ModelProto.Types.SentencePiece.Types.
Type
Type)[] _vocabReverse;
38
_vocabReverse = new (string Piece, float Score, ModelProto.Types.SentencePiece.Types.
Type
Type)[modelProto.Pieces.Count];
45
if (modelProto.Pieces[i].Type == ModelProto.Types.SentencePiece.Types.
Type
.Normal ||
46
modelProto.Pieces[i].Type == ModelProto.Types.SentencePiece.Types.
Type
.UserDefined ||
47
modelProto.Pieces[i].Type == ModelProto.Types.SentencePiece.Types.
Type
.Unused)
56
else if (modelProto.Pieces[i].Type == ModelProto.Types.SentencePiece.Types.
Type
.Byte)
60
else if (modelProto.Pieces[i].Type == ModelProto.Types.SentencePiece.Types.
Type
.Unknown)
63
_vocabReverse[i] = (modelProto.Pieces[i].Piece, modelProto.Pieces[i].Score, ModelProto.Types.SentencePiece.Types.
Type
.Unknown);
85
_vocabReverse[modelProto.TrainerSpec.BosId] = (modelProto.TrainerSpec.BosPiece, 0f, ModelProto.Types.SentencePiece.Types.
Type
.Control);
86
_vocabReverse[modelProto.TrainerSpec.EosId] = (modelProto.TrainerSpec.EosPiece, 0f, ModelProto.Types.SentencePiece.Types.
Type
.Control);
87
_vocabReverse[modelProto.TrainerSpec.UnkId] = (modelProto.TrainerSpec.UnkPiece, 0f, ModelProto.Types.SentencePiece.Types.
Type
.Unknown);
92
_vocabReverse[modelProto.TrainerSpec.PadId] = (modelProto.TrainerSpec.PadPiece, 0f, ModelProto.Types.SentencePiece.Types.
Type
.Control);
506
if (_vocabReverse[ret].Type == ModelProto.Types.SentencePiece.Types.
Type
.Unused)
516
float score = _vocabReverse[ret].Type == ModelProto.Types.SentencePiece.Types.
Type
.UserDefined ? length * _maxScore - 0.1f : _vocabReverse[ret].Score;
SentencepieceModel.cs (6)
104
new pbr::GeneratedClrTypeInfo(typeof(global::Sentencepiece.ModelProto), global::Sentencepiece.ModelProto.Parser, new[]{ "Pieces", "TrainerSpec", "NormalizerSpec", "SelfTestData", "DenormalizerSpec" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Sentencepiece.ModelProto.Types.SentencePiece), global::Sentencepiece.ModelProto.Types.SentencePiece.Parser, new[]{ "Piece", "Score", "Type" }, null, new[]{ typeof(global::Sentencepiece.ModelProto.Types.SentencePiece.Types.
Type
) }, null, null)})
4408
private readonly static global::Sentencepiece.ModelProto.Types.SentencePiece.Types.
Type
TypeDefaultValue = global::Sentencepiece.ModelProto.Types.SentencePiece.Types.
Type
.Normal;
4410
private global::Sentencepiece.ModelProto.Types.SentencePiece.Types.
Type
type_;
4413
public global::Sentencepiece.ModelProto.Types.SentencePiece.Types.
Type
Type {
4624
Type = (global::Sentencepiece.ModelProto.Types.SentencePiece.Types.
Type
) input.ReadEnum();