Options
All
  • Public
  • Public/Protected
  • All
Menu

A translation suggestion

Hierarchy

  • Suggestion

Index

Constructors

constructor

  • Returns Suggestion

Properties

Private predictions

predictions: Prediction[]

Methods

addPrediction

  • Adds a prediction to the suggestion.

    Parameters

    Returns void

compoundConfidence

  • compoundConfidence(): number
  • Returns the compounded confidence score of all predictions within the suggestion.

    Returns number

getPredictions

  • Returns Prediction[]

toJSON

  • toJSON(verbose?: boolean): object
  • Outputs the alignment predictions to json

    Parameters

    • Default value verbose: boolean = false

      print full metadata

    Returns object

toString

  • toString(): string
  • Prints a user friendly form of the suggestion

    Returns string

Static sortPredictions

  • Sorts predictions by token position

    Parameters

    • predictions: Prediction[]

      the predictions to sort

    Returns Prediction[]

Generated using TypeDoc