Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Should not have conversion: second -> 2nd in "Give me a second to check" #22

@hongbo-miao

Description

@hongbo-miao

I am using text-processing-rs 0.2.1

use text_processing_rs::normalize_sentence;

fn main() {
    let normalized_text = normalize_sentence("Give me a second to check."); // Give me a 2nd to check.
    println!("{normalized_text}");
}

I expect it stays Give me a second to check.

Just logging a case where the library converts second to 2nd when it should not.
I am not sure how to handle this without using a model, but wanted to document it here.
Thanks! 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions