Skip to content

bug: romanize() returns empty string for both "thai2rom" and "thai2rom_onnx" engines #1346

Description

@gripfy

Description

Calling romanize() with either engine="thai2rom" or engine="thai2rom_onnx"
returns an empty string

Expected results

"somchai"

Current results

"" (empty string)

Steps to reproduce

from pythainlp.transliterate import romanize

print(repr(romanize("สมชาย", engine="thai2rom")))       # Output: ''
print(repr(romanize("สมชาย", engine="thai2rom_onnx")))  # Output: ''

### PyThaiNLP version

 5.3.2

### Python version

3.12

### Operating system and version

Windows 11

### More info

_No response_

### Possible solution

_No response_

### Files

_No response_

Metadata

Metadata

Labels

bugbugs in the library

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions