-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
The parameter N in the class JBLEU is fixed to 4.
private static final int N = 4;
Why don't we get the value of N from the constuction like this?
private static int N;
public JBLEU(int n_gram) {
N = n_gram;
}
public JBLEU(int n_gram, int verbosity) {
N = n_gram;
this.verbosity = verbosity;
}
In function:
public double score(int[] suffStats, double[] allResults),
double ngramOrderWeight = 0.25;
should be
double ngramOrderWeight = 1.0 / N;
What do you think?
Metadata
Metadata
Assignees
Labels
No labels