Function countUniqueNgrams

  • Count the total number of unique n-grams of a string.

    Parameters

    • x: string

      a string

    • n: number

      n-gram length

    Returns number

    |Set {gᵢ}| | gᵢ = iᵗʰ n-gram

Generated using TypeDoc