I am using text-processing-rs version 0.1.0
Case 1 (Correct): Using normalize:
use text_processing_rs::normalize;
fn main() {
let normalized_text = normalize("United seven eighty eight");
println!("{normalized_text}"); // 788
}
Case 2 (Incorrect): Using normalize_sentence:
use text_processing_rs::normalize_sentence;
fn main() {
let normalized_text = normalize_sentence("United seven eighty eight");
println!("{normalized_text}"); // United 95
}
This gives me United 95, however, I expect it to be United 788
Seems it tries to add 7 + 88 = 95
It would be great to support this case, as this way of speaking is common in aviation. Thanks! ☺️
I am using text-processing-rs version 0.1.0
Case 1 (Correct): Using
normalize:Case 2 (Incorrect): Using
normalize_sentence:This gives me
United 95, however, I expect it to beUnited 788Seems it tries to add 7 + 88 = 95
It would be great to support this case, as this way of speaking is common in aviation. Thanks!☺️