Function tverskyIndex

  • Get Tversky index between strings.

    Parameters

    • x: string

      a string

    • y: string

      another string

    • n: number

      n-gram length

    • a: number = 1

      alpha [1]

    • b: number = 1

      beta [1]

    Returns number

    |X ∩ Y|/(|X ∩ Y| + α|X \ Y| + β|Y \ X|) | X,Y = n-grams of x,y

Generated using TypeDoc