Represents a SentencePiece.

Implements

Constructors

Properties

piece: string

SentencePiece piece.

score: number

SentencePiece score.

SentencePiece type.

Methods

  • Verifies a SentencePiece message.

    Parameters

    • message: { [k: string]: any }

      Plain object to verify

    Returns null | string

    null if valid, otherwise the reason why it is not