Package sentencepiece

Interface SentencepieceModel.ModelProto.SentencePieceOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getPiece()
      piece must not be empty.
      com.google.protobuf.ByteString getPieceBytes()
      piece must not be empty.
      float getScore()
      optional float score = 2;
      SentencepieceModel.ModelProto.SentencePiece.Type getType()
      optional .sentencepiece.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];
      boolean hasPiece()
      piece must not be empty.
      boolean hasScore()
      optional float score = 2;
      boolean hasType()
      optional .sentencepiece.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];
      • Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder

        getDefaultInstanceForType, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasPiece

        boolean hasPiece()
         piece must not be empty.
         
        optional string piece = 1;
        Returns:
        Whether the piece field is set.
      • getPiece

        java.lang.String getPiece()
         piece must not be empty.
         
        optional string piece = 1;
        Returns:
        The piece.
      • getPieceBytes

        com.google.protobuf.ByteString getPieceBytes()
         piece must not be empty.
         
        optional string piece = 1;
        Returns:
        The bytes for piece.
      • hasScore

        boolean hasScore()
        optional float score = 2;
        Returns:
        Whether the score field is set.
      • getScore

        float getScore()
        optional float score = 2;
        Returns:
        The score.
      • hasType

        boolean hasType()
        optional .sentencepiece.ModelProto.SentencePiece.Type type = 3 [default = NORMAL];
        Returns:
        Whether the type field is set.