Skip to content

Text normalization not working in some cases #384

@wannaphong

Description

@wannaphong

Describe the bug
Text normalization not working in some cases such as 'เค้้้าเดินไปสนามหญา้หนา้บา้น' output 'เค้้้าเดินไปสนามหญ้าหน้าบ้าน' and 'พ ุ่มดอกไม้ในสนามหญา้หนา้บา้น' output 'พ ุ่มดอกไม้ในสนามหญ้าหน้าบ้าน'.

To Reproduce
Steps to reproduce the behavior:

  1. from pythainlp.util import normalize
  2. normalize('เค้้้าเดินไปสนามหญา้หนา้บา้น')
  3. normalize('พ ุ่มดอกไม้ในสนามหญา้หนา้บา้น')

Desktop (please complete the following information):
Colab. PyThaiNLP 2.2.0dev0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Hacktoberfestfor Hacktoberfest eventbugbugs in the library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions