We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The parameter N in the class JBLEU is fixed to 4.
Why don't we get the value of N from the constuction like this?
In function:
public double score(int[] suffStats, double[] allResults),
should be
What do you think?
The text was updated successfully, but these errors were encountered: