Skip to content

normalize_sentence_aviation failed for thirty five sixty two #23

@hongbo-miao

Description

@hongbo-miao

I am using text-processing-rs 0.2.1

use text_processing_rs::normalize_sentence_aviation;

fn main() {
    let result = normalize_sentence_aviation("Alright thirty five sixty two appreciate your help United seven eighty eight");
    println!("{result}");

currently prints

Alright 97 appreciate your help United 788

I expect it prints

Alright 3562 appreciate your help United 788

United 788 has handled properly.

For thirty five sixty two, it still tries to add two numbers 35 + 62 = 97

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions