Skip to content

bug: Romanize company name, found repeated strings #1403

Description

@siripods

Description

Found strange output from feature Romanization

engine: thai2rom_onnx


Sample #1
Input: เอ็มเอฟซีบัญชีเพื่อการชำระค่ารับซื้อคืน
Output (Romanized) : em-epsibanchiphueakanchiphueakanchiphueakanchiphueakanchiphueakanchiphueakanchiphueakanchiphueakanch

Notice: string "banchiphueakan" are repeated many times


Sample #2
Input: บัญชีเพื่อการชำระค่าขายคืนหน่วยลงทุน
Output (Romanized) : banchiphueakanchamrakhakhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhai
k

Notice: string "khai" are repeated many times

Expected results

There should not be any repeated strings in romanized output.

Current results

Found strange output from feature Romanization

engine: thai2rom_onnx


Sample #1
Input: เอ็มเอฟซีบัญชีเพื่อการชำระค่ารับซื้อคืน
Output (Romanized) : em-epsibanchiphueakanchiphueakanchiphueakanchiphueakanchiphueakanchiphueakanchiphueakanchiphueakanch

Notice: string "banchiphueakan" are repeated many times


Sample #2
Input: บัญชีเพื่อการชำระค่าขายคืนหน่วยลงทุน
Output (Romanized) : banchiphueakanchamrakhakhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhaikhai
k

Notice: string "khai" are repeated many times

Steps to reproduce

engine: thai2rom_onnx

Sample #1
Input: เอ็มเอฟซีบัญชีเพื่อการชำระค่ารับซื้อคืน

Sample #2
Input: บัญชีเพื่อการชำระค่าขายคืนหน่วยลงทุน

PyThaiNLP version

5.3

Python version

3.12

Operating system and version

Windows

More info

No response

Possible solution

No response

Files

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbugs in the libraryquestionasking questions/giving suggestions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions