Skip to content

Commit

Permalink
fixed example sentence length score bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MyK00L committed Jun 28, 2024
1 parent 028e664 commit d162fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tatoeba.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn length_bonus(s: &str) -> NotNan<f32> {
const GL: f32 = 7f32;
const GR: f32 = 14f32;
NotNan::new(if l < GL {
l
l/GL
} else if l > GR {
2f32.powf(GR - l)
} else {
Expand Down

0 comments on commit d162fc5

Please sign in to comment.