Learn R Programming

sacRebleu (version 0.2.0)

validate_arguments: Validate Arguments

Description

Validate Arguments

Usage

validate_arguments(weights, smoothing, n)

Value

A list with the validated arguments (weights and smoothing)

Arguments

weights

Weight vector for 'bleu_corpus_ids' and 'bleu_sentence_ids' functions

smoothing

Smoothing method for 'bleu_corpus_ids' and 'bleu_sentence_ids' functions

n

N-gram for 'bleu_corpus_ids' and 'bleu_sentence_ids' functions