Options
All
  • Public
  • Public/Protected
  • All
Menu

Determines how unique the n-gram is.

Hierarchy

Implements

Index

Properties

name

name: string = "uniqueness"

Methods

execute

Static calc

  • calc(sourceNgramFrequency: number, targetNgramFrequency: number, sourceTokenLength: number, targetTokenLength: number, phrasePlausibility: number): number
  • Performs the uniqueness calculation. This is the pure algorithm code.

    Parameters

    • sourceNgramFrequency: number

      source n-gram frequency in the static corpus

    • targetNgramFrequency: number

      target n-gram frequency in the static corpus

    • sourceTokenLength: number

      length of the source text in units of {@link Token}

    • targetTokenLength: number

      length of the target text in units of {@link Token}

    • phrasePlausibility: number

      the likely hood that the n-gram is a phrase. Produced by PhrasePlausibility

    Returns number

Static Private calcLemmaUniqueness

  • Calculates the uniqueness of the n-gram based on the lemma

    Parameters

    Returns void

Static Private calcUniqueness

  • Calculates the uniqueness of the n-gram

    Parameters

    Returns void

Generated using TypeDoc