Options
All
  • Public
  • Public/Protected
  • All
Menu

A collection of indexes for the corpus.

Hierarchy

  • CorpusIndex

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Returns CorpusIndex

Properties

Private permutationIndex

permutationIndex: PermutationIndex

Private staticIndex

staticIndex: StaticIndex

Accessors

permutations

  • Returns an index of permutation metrics.

    Returns PermutationIndex

static

  • Returns an index of static metrics.

    Returns StaticIndex

Methods

append

  • append(source: Token[][], target: Token[][], maxSourceNgramLength: number, maxTargetNgramLength: number): void
  • Appends sentences to the index. The tokens must contain positional metrics for better accuracy.

    Parameters

    • source: Token[][]
    • target: Token[][]
    • maxSourceNgramLength: number
    • maxTargetNgramLength: number

    Returns void

Generated using TypeDoc