Represents a NormalizerSpec.

Implements

Constructors

Properties

addDummyPrefix: boolean

NormalizerSpec addDummyPrefix.

escapeWhitespaces: boolean

NormalizerSpec escapeWhitespaces.

name: string

NormalizerSpec name.

normalizationRuleTsv: string

NormalizerSpec normalizationRuleTsv.

precompiledCharsmap: Uint8Array

NormalizerSpec precompiledCharsmap.

removeExtraWhitespaces: boolean

NormalizerSpec removeExtraWhitespaces.

Methods

  • Decodes a NormalizerSpec message from the specified reader or buffer.

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    • Optionallength: number

      Message length if known beforehand

    Returns NormalizerSpec

    NormalizerSpec

    If the payload is not a reader or valid buffer

    If required fields are missing

  • Verifies a NormalizerSpec message.

    Parameters

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

      Plain object to verify

    Returns null | string

    null if valid, otherwise the reason why it is not