Skip to content

Problem with syllable tokenization #461

@p16i

Description

@p16i

Describe the bug
I've observed a behavior that is worth being discussed here. In short, when there are some punctuations, syllable tokenizes would return some incorrect syllables, both from the default engine and ssg.

image

To Reproduce
Please see: https://colab.research.google.com/drive/12gxSmskjHCQzqV1-Nb4IOaBD-LJ0ARl5?usp=sharing

Expected behavior
imho, the expected result is ['หน้า', 'ที่', ' ', '19', '...'] . To achieve this, we can split the sentence by punctuation first then do syllable tokenization for each part.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs in the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions