Skip to content

English tokeniser skips negative numbers #71

@AndrioCelos

Description

@AndrioCelos

If the text input includes negative numbers, such as -1, those may be skipped over. For example, g2p('-1')[0] returns the empty string.

The expectation was that it would be read as a negative number, such as /mˈInəs wˈʌn/.

If trf is set to True, negative numbers are pronounced correctly if other words precede them, but the above example still results in the empty string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions