2 instantiations of SentencePiece
Microsoft.ML.Tokenizers (2)
SentencepieceModel.cs (2)
4304
private static readonly pb::MessageParser<SentencePiece> _parser = new pb::MessageParser<SentencePiece>(() => new
SentencePiece
());
4347
return new
SentencePiece
(this);
42 references to SentencePiece
Microsoft.ML.Tokenizers (42)
Model\SentencePieceTokenizer.cs (11)
50
var
piece = modelProto.Pieces[i];
54
if (piece.Type == ModelProto.Types.
SentencePiece
.Types.Type.Byte)
345
if (type != (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused)
433
if (id.Type != (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused ||
694
if (type != (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused)
809
if (id.Type != (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused ||
1018
if (type != (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused)
1124
if (id.Type != (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused ||
1398
if (type != (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused)
1504
if (id.Type != (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused ||
2251
if (leftId.Type == (byte)ModelProto.Types.
SentencePiece
.Types.Type.Unused)
SentencepieceModel.cs (31)
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)})
3926
private static readonly pb::FieldCodec<global::Sentencepiece.ModelProto.Types.
SentencePiece
> _repeated_pieces_codec
3927
= pb::FieldCodec.ForMessage(10, global::Sentencepiece.ModelProto.Types.
SentencePiece
.Parser);
3928
private readonly pbc::RepeatedField<global::Sentencepiece.ModelProto.Types.
SentencePiece
> pieces_ = new pbc::RepeatedField<global::Sentencepiece.ModelProto.Types.
SentencePiece
>();
3934
public pbc::RepeatedField<global::Sentencepiece.ModelProto.Types.
SentencePiece
> Pieces {
4299
public sealed partial class SentencePiece : pb::IExtendableMessage<
SentencePiece
>
4304
private static readonly pb::MessageParser<
SentencePiece
> _parser = new pb::MessageParser<
SentencePiece
>(() => new SentencePiece());
4306
private pb::ExtensionSet<
SentencePiece
> _extensions;
4307
private pb::ExtensionSet<
SentencePiece
> _Extensions { get { return _extensions; } }
4311
public static pb::MessageParser<
SentencePiece
> Parser { get { return _parser; } }
4335
public SentencePiece(
SentencePiece
other) : this() {
4346
public
SentencePiece
Clone() {
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 {
4436
return Equals(other as
SentencePiece
);
4441
public bool Equals(
SentencePiece
other) {
4555
public void MergeFrom(
SentencePiece
other) {
4624
Type = (global::Sentencepiece.ModelProto.Types.
SentencePiece
.Types.Type) input.ReadEnum();
4632
public TValue GetExtension<TValue>(pb::Extension<
SentencePiece
, TValue> extension) {
4635
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<
SentencePiece
, TValue> extension) {
4638
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<
SentencePiece
, TValue> extension) {
4641
public void SetExtension<TValue>(pb::Extension<
SentencePiece
, TValue> extension, TValue value) {
4644
public bool HasExtension<TValue>(pb::Extension<
SentencePiece
, TValue> extension) {
4647
public void ClearExtension<TValue>(pb::Extension<
SentencePiece
, TValue> extension) {
4650
public void ClearExtension<TValue>(pb::RepeatedExtension<
SentencePiece
, TValue> extension) {