Function countEachNgram

  • Count each n-gram of a string.

    Parameters

    • x: string

      a string

    • n: number

      n-gram length

    Returns Map<string, number>

    Map {gᵢ: count(gᵢ)} | gᵢ = iᵗʰ n-gram

Generated using TypeDoc