Options
All
  • Public
  • Public/Protected
  • All
Menu

Determines the likely hood that an n-gram is a phrase.

Hierarchy

Implements

Index

Properties

name

name: string = "phrase plausibility"

Methods

execute

Static calc

  • calc(sourceNgram: Ngram, targetNgram: Ngram, sourceNgramFrequency: number, targetNgramFrequency: number, sourceTokenLength: number, targetTokenLength: number): number
  • Calculates the plausibility

    Parameters

    • sourceNgram: Ngram

      The source n-gram

    • targetNgram: Ngram

      The target n-gram

    • sourceNgramFrequency: number

      The source n-gram frequency in the corpus

    • targetNgramFrequency: number

      The target n-gram frequency in the 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}

    Returns number

Static Private calcLemmaPlausibility

  • Calculates phrase plausibility based on the lemma

    Parameters

    Returns void

Static Private calcPlausibility

  • Calculates phrase plausibility based on the word

    Parameters

    Returns void

Generated using TypeDoc